pub struct ParsedBody {
pub text: Option<String>,
pub html: Option<String>,
pub attachments: Vec<Attachment>,
}Expand description
Parsed message body parts as returned by crate::store::MailStore::parse_message.
Fields§
§text: Option<String>Decoded text/plain body, if any.
html: Option<String>Decoded text/html body, if any.
attachments: Vec<Attachment>Attachment metadata (no body bytes — see Attachment).
Trait Implementations§
Source§impl Clone for ParsedBody
impl Clone for ParsedBody
Source§fn clone(&self) -> ParsedBody
fn clone(&self) -> ParsedBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedBody
impl Debug for ParsedBody
Source§impl Default for ParsedBody
impl Default for ParsedBody
Source§fn default() -> ParsedBody
fn default() -> ParsedBody
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedBody
impl RefUnwindSafe for ParsedBody
impl Send for ParsedBody
impl Sync for ParsedBody
impl Unpin for ParsedBody
impl UnsafeUnpin for ParsedBody
impl UnwindSafe for ParsedBody
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