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 for PolicyOverrideReason
impl PartialEq 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 ==.source§impl Serialize for PolicyOverrideReason
impl Serialize for PolicyOverrideReason
impl Eq for PolicyOverrideReason
impl StructuralPartialEq for PolicyOverrideReason
Auto Trait Implementations§
impl RefUnwindSafe for PolicyOverrideReason
impl Send for PolicyOverrideReason
impl Sync for PolicyOverrideReason
impl Unpin for PolicyOverrideReason
impl UnwindSafe for PolicyOverrideReason
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