Struct mail_auth::report::PolicyOverrideReason
source · pub struct PolicyOverrideReason { /* private fields */ }Implementations§
source§impl PolicyOverrideReason
impl PolicyOverrideReason
pub fn new(type_: PolicyOverride) -> Self
pub fn with_comment(self, comment: impl Into<String>) -> Self
pub fn comment(&self) -> Option<&str>
pub fn policy_override(&self) -> PolicyOverride
Trait Implementations§
source§impl Clone for PolicyOverrideReason
impl Clone for PolicyOverrideReason
source§fn clone(&self) -> PolicyOverrideReason
fn clone(&self) -> PolicyOverrideReason
Returns a copy 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 moresource§impl Debug for PolicyOverrideReason
impl Debug for PolicyOverrideReason
source§impl Default for PolicyOverrideReason
impl Default for PolicyOverrideReason
source§fn default() -> PolicyOverrideReason
fn default() -> PolicyOverrideReason
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PolicyOverrideReason
impl<'de> Deserialize<'de> for PolicyOverrideReason
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
source§impl Hash for PolicyOverrideReason
impl Hash for PolicyOverrideReason
source§impl PartialEq<PolicyOverrideReason> for PolicyOverrideReason
impl PartialEq<PolicyOverrideReason> for PolicyOverrideReason
source§fn eq(&self, other: &PolicyOverrideReason) -> bool
fn eq(&self, other: &PolicyOverrideReason) -> bool
This method tests for
self and other values to be equal, and is used
by ==.