Struct DmarcRecord
pub struct DmarcRecord { /* private fields */ }Expand description
DMARC record metadata. This type does not enforce policy.
Implementations§
§impl DmarcRecord
impl DmarcRecord
pub const fn new(policy: DmarcPolicy) -> DmarcRecord
pub const fn new(policy: DmarcPolicy) -> DmarcRecord
Creates a DMARC record with the requested policy.
pub const fn with_subdomain_policy(
self,
policy: DmarcSubdomainPolicy,
) -> DmarcRecord
pub const fn with_subdomain_policy( self, policy: DmarcSubdomainPolicy, ) -> DmarcRecord
Sets the subdomain policy.
pub const fn with_dkim_alignment(
self,
alignment: DmarcAlignmentMode,
) -> DmarcRecord
pub const fn with_dkim_alignment( self, alignment: DmarcAlignmentMode, ) -> DmarcRecord
Sets DKIM alignment.
pub const fn with_spf_alignment(
self,
alignment: DmarcAlignmentMode,
) -> DmarcRecord
pub const fn with_spf_alignment( self, alignment: DmarcAlignmentMode, ) -> DmarcRecord
Sets SPF alignment.
pub fn with_report_uri(self, uri: DmarcReportUri) -> DmarcRecord
pub fn with_report_uri(self, uri: DmarcReportUri) -> DmarcRecord
Adds a reporting URI.
pub fn with_failure_option(self, option: DmarcFailureOption) -> DmarcRecord
pub fn with_failure_option(self, option: DmarcFailureOption) -> DmarcRecord
Adds a failure option.
pub const fn with_percentage(self, percentage: DmarcPercentage) -> DmarcRecord
pub const fn with_percentage(self, percentage: DmarcPercentage) -> DmarcRecord
Sets the percentage tag.
pub const fn policy(&self) -> DmarcPolicy
pub const fn policy(&self) -> DmarcPolicy
Returns the policy.
Trait Implementations§
§impl Clone for DmarcRecord
impl Clone for DmarcRecord
§fn clone(&self) -> DmarcRecord
fn clone(&self) -> DmarcRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DmarcRecord
impl Debug for DmarcRecord
§impl Display for DmarcRecord
impl Display for DmarcRecord
§impl PartialEq for DmarcRecord
impl PartialEq for DmarcRecord
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