Struct mail_auth::dkim::DkimSigner
source · pub struct DkimSigner<T: SigningKey, State = NeedDomain> { /* private fields */ }Implementations§
source§impl<T: SigningKey> DkimSigner<T>
impl<T: SigningKey> DkimSigner<T>
pub fn from_key(key: T) -> DkimSigner<T, NeedDomain>
source§impl<T: SigningKey> DkimSigner<T, NeedDomain>
impl<T: SigningKey> DkimSigner<T, NeedDomain>
sourcepub fn domain(self, domain: impl Into<String>) -> DkimSigner<T, NeedSelector>
pub fn domain(self, domain: impl Into<String>) -> DkimSigner<T, NeedSelector>
Sets the domain to use for signing.
source§impl<T: SigningKey> DkimSigner<T, NeedSelector>
impl<T: SigningKey> DkimSigner<T, NeedSelector>
sourcepub fn selector(self, selector: impl Into<String>) -> DkimSigner<T, NeedHeaders>
pub fn selector(self, selector: impl Into<String>) -> DkimSigner<T, NeedHeaders>
Sets the selector to use for signing.
source§impl<T: SigningKey> DkimSigner<T, NeedHeaders>
impl<T: SigningKey> DkimSigner<T, NeedHeaders>
sourcepub fn headers(
self,
headers: impl IntoIterator<Item = impl Into<String>>
) -> DkimSigner<T, Done>
pub fn headers( self, headers: impl IntoIterator<Item = impl Into<String>> ) -> DkimSigner<T, Done>
Sets the headers to sign.
source§impl<T: SigningKey> DkimSigner<T, Done>
impl<T: SigningKey> DkimSigner<T, Done>
sourcepub fn atpsh(self, atpsh: HashAlgorithm) -> Self
pub fn atpsh(self, atpsh: HashAlgorithm) -> Self
Sets the third-party signature hashing algorithm.
sourcepub fn agent_user_identifier(self, auid: impl Into<String>) -> Self
pub fn agent_user_identifier(self, auid: impl Into<String>) -> Self
Sets the selector to use for signing.
sourcepub fn expiration(self, expiration: u64) -> Self
pub fn expiration(self, expiration: u64) -> Self
Sets the number of seconds from now to use for the signature expiration.
sourcepub fn body_length(self, body_length: bool) -> Self
pub fn body_length(self, body_length: bool) -> Self
Include the body length in the signature.
sourcepub fn header_canonicalization(self, ch: Canonicalization) -> Self
pub fn header_canonicalization(self, ch: Canonicalization) -> Self
Sets header canonicalization algorithm.
sourcepub fn body_canonicalization(self, cb: Canonicalization) -> Self
pub fn body_canonicalization(self, cb: Canonicalization) -> Self
Sets header canonicalization algorithm.
Trait Implementations§
source§impl<T: Clone + SigningKey, State: Clone> Clone for DkimSigner<T, State>
impl<T: Clone + SigningKey, State: Clone> Clone for DkimSigner<T, State>
source§fn clone(&self) -> DkimSigner<T, State>
fn clone(&self) -> DkimSigner<T, State>
Returns a copy 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 moresource§impl<T: Debug + SigningKey, State: Debug> Debug for DkimSigner<T, State>
impl<T: Debug + SigningKey, State: Debug> Debug for DkimSigner<T, State>
source§impl<T: Default + SigningKey, State: Default> Default for DkimSigner<T, State>
impl<T: Default + SigningKey, State: Default> Default for DkimSigner<T, State>
source§fn default() -> DkimSigner<T, State>
fn default() -> DkimSigner<T, State>
Returns the “default value” for a type. Read more
source§impl<T: PartialEq + SigningKey, State: PartialEq> PartialEq for DkimSigner<T, State>
impl<T: PartialEq + SigningKey, State: PartialEq> PartialEq for DkimSigner<T, State>
source§fn eq(&self, other: &DkimSigner<T, State>) -> bool
fn eq(&self, other: &DkimSigner<T, State>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T: Eq + SigningKey, State: Eq> Eq for DkimSigner<T, State>
impl<T: SigningKey, State> StructuralPartialEq for DkimSigner<T, State>
Auto Trait Implementations§
impl<T, State> RefUnwindSafe for DkimSigner<T, State>where
State: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, State> Send for DkimSigner<T, State>
impl<T, State> Sync for DkimSigner<T, State>
impl<T, State> Unpin for DkimSigner<T, State>
impl<T, State> UnwindSafe for DkimSigner<T, State>where
State: UnwindSafe,
T: UnwindSafe,
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