#[non_exhaustive]pub enum ApprovalAmendmentDurability {
Session,
LocalPersistent,
Unknown(String),
}Expand description
How long a rule created by an approval decision lasts. The set is open, so newer hosts may send other values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Session
session: the rule applies for the rest of this session.
LocalPersistent
localPersistent: the rule is saved in the local policy store and lasts
beyond this session.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalAmendmentDurability
impl Clone for ApprovalAmendmentDurability
Source§impl Debug for ApprovalAmendmentDurability
impl Debug for ApprovalAmendmentDurability
Source§impl<'de> Deserialize<'de> for ApprovalAmendmentDurability
impl<'de> Deserialize<'de> for ApprovalAmendmentDurability
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
impl Eq for ApprovalAmendmentDurability
impl StructuralPartialEq for ApprovalAmendmentDurability
Auto Trait Implementations§
impl Freeze for ApprovalAmendmentDurability
impl RefUnwindSafe for ApprovalAmendmentDurability
impl Send for ApprovalAmendmentDurability
impl Sync for ApprovalAmendmentDurability
impl Unpin for ApprovalAmendmentDurability
impl UnsafeUnpin for ApprovalAmendmentDurability
impl UnwindSafe for ApprovalAmendmentDurability
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