pub struct DmarcInput {
pub from_domain: String,
pub policy_domain: String,
pub spf: Option<SpfResult>,
pub dkim: Vec<DkimSignatureResult>,
}Expand description
Input bundle for evaluate. All fields are owned because the
outcome’s reason strings borrow from them in some implementations.
Fields§
§from_domain: StringRFC 5322 From: header domain — the identity DMARC anchors on.
policy_domain: StringThe domain whose _dmarc.<domain> TXT we used. Equal to from_domain
when the From: domain has a policy directly; otherwise the org domain.
spf: Option<SpfResult>SPF result (or absent if SPF wasn’t checked / errored).
dkim: Vec<DkimSignatureResult>All DKIM signatures observed on the message.
Trait Implementations§
Source§impl Clone for DmarcInput
impl Clone for DmarcInput
Source§fn clone(&self) -> DmarcInput
fn clone(&self) -> DmarcInput
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 moreAuto Trait Implementations§
impl Freeze for DmarcInput
impl RefUnwindSafe for DmarcInput
impl Send for DmarcInput
impl Sync for DmarcInput
impl Unpin for DmarcInput
impl UnsafeUnpin for DmarcInput
impl UnwindSafe for DmarcInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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