Struct cfdkim::SignerBuilder
source · [−]pub struct SignerBuilder<'a> { /* private fields */ }Expand description
Builder for the Signer
Implementations
sourceimpl<'a> SignerBuilder<'a>
impl<'a> SignerBuilder<'a>
sourcepub fn with_signed_headers(
self,
headers: &'a [&'a str]
) -> Result<Self, DKIMError>
pub fn with_signed_headers(
self,
headers: &'a [&'a str]
) -> Result<Self, DKIMError>
Specify headers to be used in the DKIM signature The From: header is required.
sourcepub fn with_private_key(self, key: RsaPrivateKey) -> Self
pub fn with_private_key(self, key: RsaPrivateKey) -> Self
Specify the private key used to sign the email
sourcepub fn with_selector(self, value: &'a str) -> Self
pub fn with_selector(self, value: &'a str) -> Self
Specify the private key used to sign the email
sourcepub fn with_signing_domain(self, value: &'a str) -> Self
pub fn with_signing_domain(self, value: &'a str) -> Self
Specify for which domain the email should be signed for
sourcepub fn with_header_canonicalization(self, value: Type) -> Self
pub fn with_header_canonicalization(self, value: Type) -> Self
Specify the header canonicalization
sourcepub fn with_body_canonicalization(self, value: Type) -> Self
pub fn with_body_canonicalization(self, value: Type) -> Self
Specify the body canonicalization
sourcepub fn with_logger(self, logger: &'a Logger) -> Self
pub fn with_logger(self, logger: &'a Logger) -> Self
Specify a logger
sourcepub fn with_time(self, value: DateTime<Utc>) -> Self
pub fn with_time(self, value: DateTime<Utc>) -> Self
Specify current time. Mostly used for testing
sourcepub fn with_expiry(self, value: Duration) -> Self
pub fn with_expiry(self, value: Duration) -> Self
Specify a expiry duration for the signature validity
Auto Trait Implementations
impl<'a> RefUnwindSafe for SignerBuilder<'a>
impl<'a> Send for SignerBuilder<'a>
impl<'a> Sync for SignerBuilder<'a>
impl<'a> Unpin for SignerBuilder<'a>
impl<'a> UnwindSafe for SignerBuilder<'a>
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