pub struct SignerBuilder<'a> { /* private fields */ }
Expand description

Builder for the Signer

Implementations

New builder

Specify headers to be used in the DKIM signature The From: header is required.

Specify the private key used to sign the email

Specify the private key used to sign the email

Specify for which domain the email should be signed for

Specify the header canonicalization

Specify the body canonicalization

Specify a logger

Specify current time. Mostly used for testing

Specify a expiry duration for the signature validity

Build an instance of the Signer Must be provided: signed_headers, private_key, selector, logger and signing_domain.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.