pub struct MessageAuthentication {
pub spf: AuthVerdict,
pub dkim: AuthVerdict,
pub dmarc: AuthVerdict,
pub dmarc_policy: Option<String>,
pub authenticated_domain: Option<String>,
pub from_domain: Option<String>,
pub alignment: AuthAlignment,
pub raw: Vec<String>,
}Expand description
Structured view of a message’s Authentication-Results headers.
afmail does not classify mail; this only reports what the receiving server
asserted (which domain authenticated, and whether it aligns with From).
Pass authenticates the domain, not the legitimacy of the contents.
Fields§
§spf: AuthVerdict§dkim: AuthVerdict§dmarc: AuthVerdict§dmarc_policy: Option<String>§authenticated_domain: Option<String>§from_domain: Option<String>§alignment: AuthAlignment§raw: Vec<String>Implementations§
Source§impl MessageAuthentication
impl MessageAuthentication
Sourcepub fn has_results(&self) -> bool
pub fn has_results(&self) -> bool
Whether any Authentication-Results header was present on the message.
Sourcepub fn is_warning(&self) -> bool
pub fn is_warning(&self) -> bool
Whether the result should be surfaced in a warning tone: a hard failure,
a permanent error, or a domain that authenticated but does not align
with the visible From.
Trait Implementations§
Source§impl Clone for MessageAuthentication
impl Clone for MessageAuthentication
Source§fn clone(&self) -> MessageAuthentication
fn clone(&self) -> MessageAuthentication
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageAuthentication
impl Debug for MessageAuthentication
Source§impl Default for MessageAuthentication
impl Default for MessageAuthentication
Source§fn default() -> MessageAuthentication
fn default() -> MessageAuthentication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageAuthentication
impl<'de> Deserialize<'de> for MessageAuthentication
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageAuthentication
Source§impl PartialEq for MessageAuthentication
impl PartialEq for MessageAuthentication
Source§fn eq(&self, other: &MessageAuthentication) -> bool
fn eq(&self, other: &MessageAuthentication) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageAuthentication
impl Serialize for MessageAuthentication
impl StructuralPartialEq for MessageAuthentication
Auto Trait Implementations§
impl Freeze for MessageAuthentication
impl RefUnwindSafe for MessageAuthentication
impl Send for MessageAuthentication
impl Sync for MessageAuthentication
impl Unpin for MessageAuthentication
impl UnsafeUnpin for MessageAuthentication
impl UnwindSafe for MessageAuthentication
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.