pub struct DmarcParameters<'x, F>{
pub message: &'x AuthenticatedMessage<'x>,
pub dkim_output: &'x [DkimOutput<'x>],
pub rfc5321_mail_from_domain: &'x str,
pub spf_output: &'x SpfOutput,
pub domain_suffix_fn: F,
}Fields§
§message: &'x AuthenticatedMessage<'x>§dkim_output: &'x [DkimOutput<'x>]§rfc5321_mail_from_domain: &'x str§spf_output: &'x SpfOutput§domain_suffix_fn: FImplementations§
Source§impl<'x> DmarcParameters<'x, fn(&str) -> &str>
impl<'x> DmarcParameters<'x, fn(&str) -> &str>
pub fn new( message: &'x AuthenticatedMessage<'x>, dkim_output: &'x [DkimOutput<'x>], rfc5321_mail_from_domain: &'x str, spf_output: &'x SpfOutput, ) -> Self
Source§impl<'x, F> DmarcParameters<'x, F>
impl<'x, F> DmarcParameters<'x, F>
pub fn with_domain_suffix_fn<NewF>(self, f: NewF) -> DmarcParameters<'x, NewF>
Trait Implementations§
Source§impl<'x, F> From<DmarcParameters<'x, F>> for Parameters<'x, DmarcParameters<'x, F>, NoCache<String, Txt>, NoCache<String, Arc<Vec<MX>>>, NoCache<String, Arc<Vec<Ipv4Addr>>>, NoCache<String, Arc<Vec<Ipv6Addr>>>, NoCache<IpAddr, Arc<Vec<String>>>>
impl<'x, F> From<DmarcParameters<'x, F>> for Parameters<'x, DmarcParameters<'x, F>, NoCache<String, Txt>, NoCache<String, Arc<Vec<MX>>>, NoCache<String, Arc<Vec<Ipv4Addr>>>, NoCache<String, Arc<Vec<Ipv6Addr>>>, NoCache<IpAddr, Arc<Vec<String>>>>
Source§fn from(params: DmarcParameters<'x, F>) -> Self
fn from(params: DmarcParameters<'x, F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'x, F> Freeze for DmarcParameters<'x, F>where
F: Freeze,
impl<'x, F> RefUnwindSafe for DmarcParameters<'x, F>where
F: RefUnwindSafe,
impl<'x, F> Send for DmarcParameters<'x, F>where
F: Send,
impl<'x, F> Sync for DmarcParameters<'x, F>where
F: Sync,
impl<'x, F> Unpin for DmarcParameters<'x, F>where
F: Unpin,
impl<'x, F> UnwindSafe for DmarcParameters<'x, F>where
F: UnwindSafe,
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