pub struct MailHeader<'a>(/* private fields */);
Implementations§
Source§impl<'a> MailHeader<'a>
impl<'a> MailHeader<'a>
Sourcepub fn get_field(&self, field: &str) -> Result<Option<String>>
pub fn get_field(&self, field: &str) -> Result<Option<String>>
Get a value of a single field of the mail file
Sourcepub fn get_from(&self) -> Result<Option<String>>
pub fn get_from(&self) -> Result<Option<String>>
Get a value of the From
field of the mail file
Sourcepub fn get_subject(&self) -> Result<Option<String>>
pub fn get_subject(&self) -> Result<Option<String>>
Get a value of the Subject
field of the mail file
Sourcepub fn get_message_id(&self) -> Result<Option<String>>
pub fn get_message_id(&self) -> Result<Option<String>>
Get a value of the Message-ID
field of the mail file
Sourcepub fn get_in_reply_to(&self) -> Result<Option<String>>
pub fn get_in_reply_to(&self) -> Result<Option<String>>
Get a value of the In-Reply-To
field of the mail file
Trait Implementations§
Source§impl<'a> Debug for MailHeader<'a>
impl<'a> Debug for MailHeader<'a>
Source§impl<'a> From<Vec<MailHeader<'a>>> for MailHeader<'a>
impl<'a> From<Vec<MailHeader<'a>>> for MailHeader<'a>
Source§fn from(mh: Vec<MailHeader<'a>>) -> Self
fn from(mh: Vec<MailHeader<'a>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for MailHeader<'a>
impl<'a> RefUnwindSafe for MailHeader<'a>
impl<'a> Send for MailHeader<'a>
impl<'a> Sync for MailHeader<'a>
impl<'a> Unpin for MailHeader<'a>
impl<'a> UnwindSafe for MailHeader<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more