Struct cfdkim::DKIMResult
source · [−]pub struct DKIMResult { /* private fields */ }Expand description
Result of the DKIM verification
Implementations
sourceimpl DKIMResult
impl DKIMResult
sourcepub fn fail(reason: DKIMError, domain_used: String) -> Self
pub fn fail(reason: DKIMError, domain_used: String) -> Self
Constructs a fail result with a reason
pub fn error(&self) -> Option<DKIMError>
sourcepub fn domain_used(&self) -> String
pub fn domain_used(&self) -> String
Returns the domain used to pass the DKIM verification
sourcepub fn summary(&self) -> &'static str
pub fn summary(&self) -> &'static str
Returns the verification result as a summary: fail, neutral or pass.
sourcepub fn with_detail(&self) -> String
pub fn with_detail(&self) -> String
Similar to summary but with detail on fail. Typically used for the
Authentication-Results header.
Trait Implementations
sourceimpl Clone for DKIMResult
impl Clone for DKIMResult
sourcefn clone(&self) -> DKIMResult
fn clone(&self) -> DKIMResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for DKIMResult
impl Send for DKIMResult
impl Sync for DKIMResult
impl Unpin for DKIMResult
impl UnwindSafe for DKIMResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more