pub struct DkimConfig { /* private fields */ }
builder
only.Expand description
A struct to describe Dkim configuration applied when signing a message selector: the name of the key publied in DNS domain: the domain for which we sign the message private_key: private key in PKCS1 string format headers: a list of headers name to be included in the signature. Signing of more than one header with same name is not supported canonicalization: the canonicalization to be applied on the message pub signing_algorithm: the signing algorithm to be used when signing
Implementations
sourceimpl DkimConfig
impl DkimConfig
sourcepub fn default_config(
selector: String,
domain: String,
private_key: DkimSigningKey
) -> DkimConfig
pub fn default_config(
selector: String,
domain: String,
private_key: DkimSigningKey
) -> DkimConfig
Create a default signature configuration with a set of headers and “simple/relaxed” canonicalization
sourcepub fn new(
selector: String,
domain: String,
private_key: DkimSigningKey,
headers: Vec<HeaderName>,
canonicalization: DkimCanonicalization
) -> DkimConfig
pub fn new(
selector: String,
domain: String,
private_key: DkimSigningKey,
headers: Vec<HeaderName>,
canonicalization: DkimCanonicalization
) -> DkimConfig
Create a DkimConfig
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DkimConfig
impl Send for DkimConfig
impl Sync for DkimConfig
impl Unpin for DkimConfig
impl UnwindSafe for DkimConfig
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more