pub struct DKIMResult { /* private fields */ }Expand description
Result of the DKIM verification
Implementations§
Source§impl DKIMResult
impl DKIMResult
Sourcepub fn pass(
domain_used: String,
header_canonicalization_type: Type,
body_canonicalization_type: Type,
) -> Self
pub fn pass( domain_used: String, header_canonicalization_type: Type, body_canonicalization_type: Type, ) -> Self
Constructs a pass result
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 header_canonicalization_type(&self) -> Option<Type>
pub fn header_canonicalization_type(&self) -> Option<Type>
Returns the header canocalization type
Sourcepub fn body_canonicalization_type(&self) -> Option<Type>
pub fn body_canonicalization_type(&self) -> Option<Type>
Returns the body canocalization type
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§
Source§impl Clone for DKIMResult
impl Clone for DKIMResult
Source§fn clone(&self) -> DKIMResult
fn clone(&self) -> DKIMResult
Returns a duplicate of the value. Read more
1.0.0 · 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 DKIMResult
impl RefUnwindSafe for DKIMResult
impl Send for DKIMResult
impl Sync for DKIMResult
impl Unpin for DKIMResult
impl UnwindSafe for DKIMResult
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