pub enum MimeMultipartType {
Mixed,
Alternative,
Digest,
Encrypted,
Parallel,
Signed,
}
Expand description
Marks the type of a multipart message
Variants§
Mixed
Entries which are independent.
This value is the default.
As defined by Section 5.1.3 of RFC 2046
Alternative
Entries which are interchangeable, such that the system can choose whichever is “best” for its use.
As defined by Section 5.1.4 of RFC 2046
Digest
Entries are (typically) a collection of messages.
As defined by Section 5.1.5 of RFC 2046
Encrypted
Two entries, the first of which explains the decryption process for the second body part.
As defined by Section 2.2 of RFC 1847
Parallel
Entry order does not matter, and could be displayed simultaneously.
As defined by Section 5.1.6 of RFC 2046
Signed
Two entries, the first of which is the content, the second is a digital signature of the first, including MIME headers.
As defined by Section 2.1 of RFC 1847
Implementations§
Source§impl MimeMultipartType
impl MimeMultipartType
Sourcepub fn from_content_type(ct: MimeContentType) -> Option<MimeMultipartType>
pub fn from_content_type(ct: MimeContentType) -> Option<MimeMultipartType>
Returns the appropriate MimeMultipartType
for the given MimeContentType
Sourcepub fn to_content_type(self) -> MimeContentType
pub fn to_content_type(self) -> MimeContentType
Returns a MimeContentType that represents this multipart type.
Trait Implementations§
Source§impl Clone for MimeMultipartType
impl Clone for MimeMultipartType
Source§fn clone(&self) -> MimeMultipartType
fn clone(&self) -> MimeMultipartType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more