pub struct DkimSignature { /* private fields */ }Expand description
DKIM signature metadata. This type does not sign or verify data.
Implementations§
Source§impl DkimSignature
impl DkimSignature
Sourcepub fn new(
selector: DkimSelector,
domain: impl AsRef<str>,
) -> Result<Self, DkimError>
pub fn new( selector: DkimSelector, domain: impl AsRef<str>, ) -> Result<Self, DkimError>
Creates DKIM signature metadata for a selector and domain.
Sourcepub const fn with_algorithm(self, algorithm: DkimAlgorithm) -> Self
pub const fn with_algorithm(self, algorithm: DkimAlgorithm) -> Self
Sets the algorithm.
Sourcepub const fn with_canonicalization(
self,
canonicalization: DkimCanonicalization,
) -> Self
pub const fn with_canonicalization( self, canonicalization: DkimCanonicalization, ) -> Self
Sets the canonicalization mode.
Sourcepub fn with_signed_headers(self, signed_headers: DkimSignedHeaders) -> Self
pub fn with_signed_headers(self, signed_headers: DkimSignedHeaders) -> Self
Sets the signed header list.
Sourcepub fn with_body_hash(self, body_hash: DkimBodyHash) -> Self
pub fn with_body_hash(self, body_hash: DkimBodyHash) -> Self
Sets the body hash metadata.
Sourcepub const fn selector(&self) -> &DkimSelector
pub const fn selector(&self) -> &DkimSelector
Returns the selector.
Sourcepub const fn domain(&self) -> &DkimDomain
pub const fn domain(&self) -> &DkimDomain
Returns the signing domain.
Trait Implementations§
Source§impl Clone for DkimSignature
impl Clone for DkimSignature
Source§fn clone(&self) -> DkimSignature
fn clone(&self) -> DkimSignature
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 DkimSignature
impl Debug for DkimSignature
Source§impl Display for DkimSignature
impl Display for DkimSignature
Source§impl PartialEq for DkimSignature
impl PartialEq for DkimSignature
Source§fn eq(&self, other: &DkimSignature) -> bool
fn eq(&self, other: &DkimSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DkimSignature
impl StructuralPartialEq for DkimSignature
Auto Trait Implementations§
impl Freeze for DkimSignature
impl RefUnwindSafe for DkimSignature
impl Send for DkimSignature
impl Sync for DkimSignature
impl Unpin for DkimSignature
impl UnsafeUnpin for DkimSignature
impl UnwindSafe for DkimSignature
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