pub struct DmarcParameters<'x> {
pub message: &'x AuthenticatedMessage<'x>,
pub dkim_output: &'x [DkimOutput<'x>],
pub dkim2_output: Option<&'x Dkim2Output<'x>>,
pub rfc5321_mail_from_domain: &'x str,
pub spf_output: &'x SpfOutput,
}Fields§
§message: &'x AuthenticatedMessage<'x>§dkim_output: &'x [DkimOutput<'x>]§dkim2_output: Option<&'x Dkim2Output<'x>>§rfc5321_mail_from_domain: &'x str§spf_output: &'x SpfOutputImplementations§
Source§impl<'x> DmarcParameters<'x>
impl<'x> DmarcParameters<'x>
pub fn new( message: &'x AuthenticatedMessage<'x>, dkim_output: &'x [DkimOutput<'x>], rfc5321_mail_from_domain: &'x str, spf_output: &'x SpfOutput, ) -> Self
pub fn with_dkim2_output(self, dkim2_output: &'x Dkim2Output<'x>) -> Self
Trait Implementations§
Source§impl<'x> From<DmarcParameters<'x>> for Parameters<'x, DmarcParameters<'x>, NoCache<Box<str>, Txt>, NoCache<Box<str>, RecordSet<MX>>, NoCache<Box<str>, RecordSet<Ipv4Addr>>, NoCache<Box<str>, RecordSet<Ipv6Addr>>, NoCache<IpAddr, RecordSet<Box<str>>>>
impl<'x> From<DmarcParameters<'x>> for Parameters<'x, DmarcParameters<'x>, NoCache<Box<str>, Txt>, NoCache<Box<str>, RecordSet<MX>>, NoCache<Box<str>, RecordSet<Ipv4Addr>>, NoCache<Box<str>, RecordSet<Ipv6Addr>>, NoCache<IpAddr, RecordSet<Box<str>>>>
Source§fn from(params: DmarcParameters<'x>) -> Self
fn from(params: DmarcParameters<'x>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'x> Freeze for DmarcParameters<'x>
impl<'x> RefUnwindSafe for DmarcParameters<'x>
impl<'x> Send for DmarcParameters<'x>
impl<'x> Sync for DmarcParameters<'x>
impl<'x> Unpin for DmarcParameters<'x>
impl<'x> UnsafeUnpin for DmarcParameters<'x>
impl<'x> UnwindSafe for DmarcParameters<'x>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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