pub enum MailBody {
SingleBody {
body: Resource,
},
MultipleBodies {
bodies: Vec<Mail>,
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
SingleBody
Fields
body: Resource
MultipleBodies
Fields
This is part of the standard! But we won’t make it public available for now. Through there is a chance that we need to do so in the future as some mechanisms might misuse this, well unusual think.
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