pub struct PolicyOverrideReason {
pub type_: PolicyOverride,
pub comment: Option<String>,
}Fields§
§type_: PolicyOverride§comment: Option<String>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 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 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§impl Serialize for PolicyOverrideReason
impl Serialize for PolicyOverrideReason
impl Eq for PolicyOverrideReason
impl StructuralPartialEq for PolicyOverrideReason
Auto Trait Implementations§
impl Freeze for PolicyOverrideReason
impl RefUnwindSafe for PolicyOverrideReason
impl Send for PolicyOverrideReason
impl Sync for PolicyOverrideReason
impl Unpin for PolicyOverrideReason
impl UnsafeUnpin 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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.