pub struct Record { /* private fields */ }
Implementations§
Source§impl Record
impl Record
pub fn new() -> Self
pub fn with_dkim_output(self, dkim_output: &[DkimOutput<'_>]) -> Self
pub fn with_spf_output( self, spf_output: &SpfOutput, scope: SPFDomainScope, ) -> Self
pub fn with_dmarc_output(self, dmarc_output: &DmarcOutput) -> Self
pub fn with_arc_output(self, arc_output: &ArcOutput<'_>) -> Self
pub fn source_ip(&self) -> Option<IpAddr>
pub fn with_source_ip(self, source_ip: IpAddr) -> Self
pub fn count(&self) -> u32
pub fn with_count(self, count: u32) -> Self
pub fn action_disposition(&self) -> ActionDisposition
pub fn with_action_disposition(self, disposition: ActionDisposition) -> Self
pub fn dmarc_dkim_result(&self) -> DmarcResult
pub fn with_dmarc_dkim_result(self, dkim: DmarcResult) -> Self
pub fn dmarc_spf_result(&self) -> DmarcResult
pub fn with_dmarc_spf_result(self, spf: DmarcResult) -> Self
pub fn policy_override_reason(&self) -> &[PolicyOverrideReason]
pub fn with_policy_override_reason(self, reason: PolicyOverrideReason) -> Self
pub fn envelope_from(&self) -> &str
pub fn with_envelope_from(self, envelope_from: impl Into<String>) -> Self
pub fn header_from(&self) -> &str
pub fn with_header_from(self, header_from: impl Into<String>) -> Self
pub fn envelope_to(&self) -> Option<&str>
pub fn with_envelope_to(self, envelope_to: impl Into<String>) -> Self
pub fn dkim_auth_result(&self) -> &[DKIMAuthResult]
pub fn with_dkim_auth_result(self, auth_result: DKIMAuthResult) -> Self
pub fn spf_auth_result(&self) -> &[SPFAuthResult]
pub fn with_spf_auth_result(self, auth_result: SPFAuthResult) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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> 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§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
Compare self to
key
and return true
if they are equal.