pub enum ParsedEmail<'a> {
FullyParsed(MimePart<'a>),
HeaderOnlyParse {
parsed: HeaderParseResult<'a>,
bytes: SharedString<'a>,
},
}
Variants§
Implementations§
source§impl<'a> ParsedEmail<'a>
impl<'a> ParsedEmail<'a>
pub fn parse<S: Into<SharedString<'a>>>(bytes: S) -> Result<Self, DKIMError>
pub fn get_body(&'a self) -> SharedString<'a>
pub fn get_headers(&'a self) -> &'a HeaderMap<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParsedEmail<'a>
impl<'a> RefUnwindSafe for ParsedEmail<'a>
impl<'a> Send for ParsedEmail<'a>
impl<'a> Sync for ParsedEmail<'a>
impl<'a> Unpin for ParsedEmail<'a>
impl<'a> UnwindSafe for ParsedEmail<'a>
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