In mime::type::*Subtype::Unknown, capture the raw string (we don't do it currently) #21

Open
opened 2023-07-25 12:11:32 +00:00 by quentin · 0 comments
Owner

for example:

#[derive(Debug, PartialEq, Clone)]
pub enum MultipartSubtype {
    Alternative,
    Mixed,
    Digest,
    Parallel,
    Report,
    Unknown,
}

and after:

#[derive(Debug, PartialEq, Clone)]
pub enum MultipartSubtype<'a> {
    Alternative,
    Mixed,
    Digest,
    Parallel,
    Report,
    Unknown(&'a[u8]),
}
for example: ```rust #[derive(Debug, PartialEq, Clone)] pub enum MultipartSubtype { Alternative, Mixed, Digest, Parallel, Report, Unknown, } ``` and after: ```rust #[derive(Debug, PartialEq, Clone)] pub enum MultipartSubtype<'a> { Alternative, Mixed, Digest, Parallel, Report, Unknown(&'a[u8]), } ```
quentin added the
cat
dx
label 2023-07-25 12:11:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/eml-codec#21
No description provided.