pub enum Source {
Raw,
Decoded(PartId),
}Expand description
The buffer the offsets of a message’s parts and headers refer to.
A nested message that was not transfer-encoded is parsed in place, so its
offsets refer to the buffer of the message that contains it: the raw
input, or the decoded body of an encoded ancestor. A base64 or
quoted-printable encoded one is decoded during the parse and its offsets
refer to that decoded body, available from MessageRef::source_bytes.
Variants§
Raw
The raw input, Message::raw.
Decoded(PartId)
The transfer-decoded body of this message/rfc822 part: the part
holding the message when the message was transfer-encoded, else the
closest transfer-encoded message/rfc822 part it is nested in.
Trait Implementations§
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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