pub struct SpfRecord {
pub directives: Box<[Directive]>,
pub exp: Option<Macro>,
pub redirect: Option<Macro>,
pub ra: Option<Box<[u8]>>,
pub rp: u8,
pub rr: u8,
}Expand description
A parsed SPF record (RFC 7208, Section 4.5).
Parsed from a v=spf1 DNS TXT record published at the domain being
checked, or at the target of an include: mechanism or redirect=
modifier.
Fields§
§directives: Box<[Directive]>Directives in the order they appear in the record.
exp: Option<Macro>exp= modifier: domain whose TXT record holds the explanation for a
fail result (Section 6.2).
redirect: Option<Macro>redirect= modifier: domain whose record is evaluated when no
directive matches (Section 6.1).
ra: Option<Box<[u8]>>ra= modifier (RFC 6652): local part of the address that receives
failure reports; the domain is the one being checked.
rp: u8rp= modifier (RFC 6652): percentage (0 to 100) of failures to report.
Defaults to 100.
rr: u8rr= modifier (RFC 6652): bitmask of the result types that trigger a
report (0x01 temperror or permerror, 0x02 fail, 0x04 softfail,
0x08 neutral or none). Defaults to all bits set (rr=all).
Trait Implementations§
impl Eq for SpfRecord
impl StructuralPartialEq for SpfRecord
Auto Trait Implementations§
impl Freeze for SpfRecord
impl RefUnwindSafe for SpfRecord
impl Send for SpfRecord
impl Sync for SpfRecord
impl Unpin for SpfRecord
impl UnsafeUnpin for SpfRecord
impl UnwindSafe for SpfRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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