pub struct ReceivedSpf { /* private fields */ }Expand description
A Received-SPF header (RFC 7208 Section 9.1).
Built from an SPF result with ReceivedSpf::new and written with
HeaderWriter. The header holds the result, a comment explaining it,
and the receiver, client-ip, envelope-from and helo keys.
Implementations§
Source§impl ReceivedSpf
impl ReceivedSpf
Sourcepub fn new(spf: &SpfOutput, params: &SpfParameters<'_>) -> Self
pub fn new(spf: &SpfOutput, params: &SpfParameters<'_>) -> Self
Builds a Received-SPF header (RFC 7208 Section 9.1) for an SPF
output.
params supplies the values reported, as for
AuthenticationResults::set_spf_result: pass the MAIL FROM address
as received, empty for the null reverse-path. receiver is
the host domain, client-ip the SMTP client address, helo the
HELO/EHLO domain, and envelope-from the MAIL FROM address, or
postmaster@<helo domain> when the reverse-path is null or no MAIL FROM
was given. The comment names the identity that was evaluated, as
AuthenticationResults::set_spf_result does.
Trait Implementations§
Source§impl Clone for ReceivedSpf
impl Clone for ReceivedSpf
Source§impl Debug for ReceivedSpf
impl Debug for ReceivedSpf
impl Eq for ReceivedSpf
Source§impl HeaderWriter for ReceivedSpf
impl HeaderWriter for ReceivedSpf
Source§fn write_header(&self, writer: &mut impl Writer)
fn write_header(&self, writer: &mut impl Writer)
writer.Source§impl PartialEq for ReceivedSpf
impl PartialEq for ReceivedSpf
impl StructuralPartialEq for ReceivedSpf
Auto Trait Implementations§
impl Freeze for ReceivedSpf
impl RefUnwindSafe for ReceivedSpf
impl Send for ReceivedSpf
impl Sync for ReceivedSpf
impl Unpin for ReceivedSpf
impl UnsafeUnpin for ReceivedSpf
impl UnwindSafe for ReceivedSpf
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