Struct mail_parser::Received
source · pub struct Received<'x> {Show 14 fields
pub from: Option<Host<'x>>,
pub from_ip: Option<IpAddr>,
pub from_iprev: Option<Cow<'x, str>>,
pub by: Option<Host<'x>>,
pub for_: Option<Cow<'x, str>>,
pub with: Option<Protocol>,
pub tls_version: Option<TlsVersion>,
pub tls_cipher: Option<Cow<'x, str>>,
pub id: Option<Cow<'x, str>>,
pub ident: Option<Cow<'x, str>>,
pub helo: Option<Host<'x>>,
pub helo_cmd: Option<Greeting>,
pub via: Option<Cow<'x, str>>,
pub date: Option<DateTime>,
}
Fields§
§from: Option<Host<'x>>
§from_ip: Option<IpAddr>
§from_iprev: Option<Cow<'x, str>>
§by: Option<Host<'x>>
§for_: Option<Cow<'x, str>>
§with: Option<Protocol>
§tls_version: Option<TlsVersion>
§tls_cipher: Option<Cow<'x, str>>
§id: Option<Cow<'x, str>>
§ident: Option<Cow<'x, str>>
§helo: Option<Host<'x>>
§helo_cmd: Option<Greeting>
§via: Option<Cow<'x, str>>
§date: Option<DateTime>
Implementations§
source§impl<'x> Received<'x>
impl<'x> Received<'x>
A Received header
pub fn into_owned(self) -> Received<'static>
sourcepub fn from(&self) -> Option<&Host<'_>>
pub fn from(&self) -> Option<&Host<'_>>
Returns the hostname or IP address of the machine that originated the message
sourcepub fn from_ip(&self) -> Option<IpAddr>
pub fn from_ip(&self) -> Option<IpAddr>
Returns the IP address of the machine that originated the message
sourcepub fn from_iprev(&self) -> Option<&str>
pub fn from_iprev(&self) -> Option<&str>
Returns the reverse DNS hostname of the machine that originated the message
sourcepub fn by(&self) -> Option<&Host<'_>>
pub fn by(&self) -> Option<&Host<'_>>
Returns the hostname or IP address of the machine that received the message
sourcepub fn for_(&self) -> Option<&str>
pub fn for_(&self) -> Option<&str>
Returns the email address of the user that the message was received for
sourcepub fn with(&self) -> Option<Protocol>
pub fn with(&self) -> Option<Protocol>
Returns the protocol that was used to receive the message
sourcepub fn tls_version(&self) -> Option<TlsVersion>
pub fn tls_version(&self) -> Option<TlsVersion>
Returns the TLS version that was used to receive the message
sourcepub fn tls_cipher(&self) -> Option<&str>
pub fn tls_cipher(&self) -> Option<&str>
Returns the TLS cipher that was used to receive the message
sourcepub fn helo(&self) -> Option<&Host<'_>>
pub fn helo(&self) -> Option<&Host<'_>>
Returns the EHLO/LHLO/HELO hostname or IP address of the machine that sent the message
Trait Implementations§
source§impl<'x> PartialEq for Received<'x>
impl<'x> PartialEq for Received<'x>
impl<'x> Eq for Received<'x>
impl<'x> StructuralPartialEq for Received<'x>
Auto Trait Implementations§
impl<'x> Freeze for Received<'x>
impl<'x> RefUnwindSafe for Received<'x>
impl<'x> Send for Received<'x>
impl<'x> Sync for Received<'x>
impl<'x> Unpin for Received<'x>
impl<'x> UnwindSafe for Received<'x>
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