pub struct ParsedMessage { /* private fields */ }Implementations§
Source§impl ParsedMessage
impl ParsedMessage
pub fn parts(&self) -> Vec<PartMeta>
pub fn part(&self, id: &PartId) -> Option<Part>
pub fn part_by_content_id(&self, content_id: &str) -> Option<&PartMeta>
pub fn text(&self) -> Option<&str>
pub fn html(&self) -> Option<&str>
Sourcepub fn is_html(&self) -> bool
pub fn is_html(&self) -> bool
True when the message carries real markup, not text dressed up as HTML.
pub fn body(&self, format: BodyFormat, ctx: &SanitizeContext) -> Body
Auto Trait Implementations§
impl Freeze for ParsedMessage
impl RefUnwindSafe for ParsedMessage
impl Send for ParsedMessage
impl Sync for ParsedMessage
impl Unpin for ParsedMessage
impl UnsafeUnpin for ParsedMessage
impl UnwindSafe for ParsedMessage
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