pub enum MailBody {
SingleBody {
body: Resource,
},
MultipleBodies {
bodies: Vec<Mail>,
hidden_text: SoftAsciiString,
},
}
Expand description
Re-export of all parts of the mail_core
crate.
Some parts like error
/default_impl
will get overridden.
A type which either represents a single body, or multiple modies.
Note that you could have a mime multipart body just containing a
single body and it being semantically important to be this way,
so we have to differ between both kinds (instead of just having
a Vec
of mails)
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MailBody
impl !RefUnwindSafe for MailBody
impl Send for MailBody
impl Sync for MailBody
impl Unpin for MailBody
impl !UnwindSafe for MailBody
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