pub enum MultiPartKind {
Mixed,
Alternative,
Related,
Encrypted {
protocol: String,
},
Signed {
protocol: String,
micalg: String,
},
}
Expand description
The kind of multipart
Variants§
Mixed
Mixed kind to combine unrelated content parts
For example this kind can be used to mix email message and attachments.
Alternative
Alternative kind to join several variants of same email contents.
That kind is recommended to use for joining plain (text) and rich (HTML) messages into single email message.
Related
Related kind to mix content and related resources.
For example, you can include images into HTML content using that.
Encrypted
Encrypted kind for encrypted messages
Signed
Signed kind for signed messages
Trait Implementations§
Source§impl Clone for MultiPartKind
impl Clone for MultiPartKind
Source§fn clone(&self) -> MultiPartKind
fn clone(&self) -> MultiPartKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MultiPartKind
impl RefUnwindSafe for MultiPartKind
impl Send for MultiPartKind
impl Sync for MultiPartKind
impl Unpin for MultiPartKind
impl UnwindSafe for MultiPartKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more