pub struct Signer { /* private fields */ }Implementations§
Source§impl Signer
DKIM signer. Use the SignerBuilder to build an instance.
impl Signer
DKIM signer. Use the SignerBuilder to build an instance.
Sourcepub fn sign(&self, email: &ParsedEmail<'_>) -> Result<String, DKIMError>
pub fn sign(&self, email: &ParsedEmail<'_>) -> Result<String, DKIMError>
Sign a message As specified in https://datatracker.ietf.org/doc/html/rfc6376#section-5
pub fn sign_impl( &self, email: &ParsedEmail<'_>, header_name: &str, additional_tags: &[(&str, String)], concrete_header_list: Option<Vec<&Header<'_>>>, ) -> Result<String, DKIMError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnwindSafe for Signer
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more