pub enum MailBody {
SingleBody {
body: Resource,
},
MultipleBodies {
bodies: Vec<Mail, Global>,
hidden_text: SoftAsciiString,
},
}
Expand description
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
sourceimpl MailBody
impl MailBody
sourcepub fn is_multipart(&self) -> bool
pub fn is_multipart(&self) -> bool
Returns true
if it’s an multipart body.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MailBody
impl Send for MailBody
impl Sync for MailBody
impl Unpin for MailBody
impl !UnwindSafe for MailBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more