pub struct DmarcRecord { /* private fields */ }Expand description
DMARC record metadata. This type does not enforce policy.
Implementations§
Source§impl DmarcRecord
impl DmarcRecord
Sourcepub const fn new(policy: DmarcPolicy) -> Self
pub const fn new(policy: DmarcPolicy) -> Self
Creates a DMARC record with the requested policy.
Sourcepub const fn with_subdomain_policy(self, policy: DmarcSubdomainPolicy) -> Self
pub const fn with_subdomain_policy(self, policy: DmarcSubdomainPolicy) -> Self
Sets the subdomain policy.
Sourcepub const fn with_dkim_alignment(self, alignment: DmarcAlignmentMode) -> Self
pub const fn with_dkim_alignment(self, alignment: DmarcAlignmentMode) -> Self
Sets DKIM alignment.
Sourcepub const fn with_spf_alignment(self, alignment: DmarcAlignmentMode) -> Self
pub const fn with_spf_alignment(self, alignment: DmarcAlignmentMode) -> Self
Sets SPF alignment.
Sourcepub fn with_report_uri(self, uri: DmarcReportUri) -> Self
pub fn with_report_uri(self, uri: DmarcReportUri) -> Self
Adds a reporting URI.
Sourcepub fn with_failure_option(self, option: DmarcFailureOption) -> Self
pub fn with_failure_option(self, option: DmarcFailureOption) -> Self
Adds a failure option.
Sourcepub const fn with_percentage(self, percentage: DmarcPercentage) -> Self
pub const fn with_percentage(self, percentage: DmarcPercentage) -> Self
Sets the percentage tag.
Sourcepub const fn policy(&self) -> DmarcPolicy
pub const fn policy(&self) -> DmarcPolicy
Returns the policy.
Trait Implementations§
Source§impl Clone for DmarcRecord
impl Clone for DmarcRecord
Source§fn clone(&self) -> DmarcRecord
fn clone(&self) -> DmarcRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DmarcRecord
impl Debug for DmarcRecord
Source§impl Display for DmarcRecord
impl Display for DmarcRecord
Source§impl PartialEq for DmarcRecord
impl PartialEq for DmarcRecord
Source§fn eq(&self, other: &DmarcRecord) -> bool
fn eq(&self, other: &DmarcRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DmarcRecord
impl StructuralPartialEq for DmarcRecord
Auto Trait Implementations§
impl Freeze for DmarcRecord
impl RefUnwindSafe for DmarcRecord
impl Send for DmarcRecord
impl Sync for DmarcRecord
impl Unpin for DmarcRecord
impl UnsafeUnpin for DmarcRecord
impl UnwindSafe for DmarcRecord
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