[−][src]Struct melib::email::Mail
Mail
holds both the envelope info of an email in its envelope
field and the raw bytes that
describe the email in bytes
. Its body as an melib::email::Attachment
can be parsed on demand
with the melib::email::Mail::body
method.
Fields
envelope: Envelope
bytes: Vec<u8>
Implementations
impl Mail
[src]
pub fn new(bytes: Vec<u8>, flags: Option<Flag>) -> Result<Self>
[src]
pub fn envelope(&self) -> &Envelope
[src]
pub fn bytes(&self) -> &[u8]
[src]
pub fn body(&self) -> Attachment
[src]
Methods from Deref<Target = Envelope>
pub fn hash(&self) -> EnvelopeHash
[src]
pub fn date(&self) -> UnixTimestamp
[src]
pub fn datetime(&self) -> UnixTimestamp
[src]
pub fn date_as_str(&self) -> &str
[src]
pub fn from(&self) -> &[Address]
[src]
pub fn field_bcc_to_string(&self) -> String
[src]
pub fn field_cc_to_string(&self) -> String
[src]
pub fn field_from_to_string(&self) -> String
[src]
pub fn to(&self) -> &[Address]
[src]
pub fn field_to_to_string(&self) -> String
[src]
pub fn field_references_to_string(&self) -> String
[src]
pub fn body_bytes(&self, bytes: &[u8]) -> Attachment
[src]
pub fn headers<'a>(&self, bytes: &'a [u8]) -> Result<Vec<(&'a str, &'a str)>>
[src]
pub fn subject(&self) -> Cow<'_, str>
[src]
pub fn in_reply_to(&self) -> Option<&MessageID>
[src]
pub fn in_reply_to_display(&self) -> Option<Cow<'_, str>>
[src]
pub fn in_reply_to_raw(&self) -> Option<Cow<'_, str>>
[src]
pub fn message_id(&self) -> &MessageID
[src]
pub fn message_id_display(&self) -> Cow<'_, str>
[src]
pub fn message_id_raw(&self) -> Cow<'_, str>
[src]
pub fn references(&self) -> SmallVec<[&MessageID; 8]>
[src]
pub fn other_headers(&self) -> &HeaderMap
[src]
pub fn thread(&self) -> ThreadNodeHash
[src]
pub fn flags(&self) -> Flag
[src]
pub fn is_seen(&self) -> bool
[src]
pub fn has_attachments(&self) -> bool
[src]
pub fn labels(&self) -> &SmallVec<[u64; 8]>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mail
impl Send for Mail
impl Sync for Mail
impl Unpin for Mail
impl UnwindSafe for Mail
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,