#[non_exhaustive]pub enum ApprovalChoiceScope {
Once,
Session,
LocalPersistent,
Unknown(String),
}Expand description
How long a grant made by a choice 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.
Once
once: the choice applies to this request only.
Session
session: the choice creates a rule that applies for the rest of the
session.
LocalPersistent
localPersistent: the choice creates a rule saved in the local policy
store, which 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 ApprovalChoiceScope
impl Clone for ApprovalChoiceScope
Source§impl Debug for ApprovalChoiceScope
impl Debug for ApprovalChoiceScope
Source§impl<'de> Deserialize<'de> for ApprovalChoiceScope
impl<'de> Deserialize<'de> for ApprovalChoiceScope
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 ApprovalChoiceScope
Source§impl PartialEq for ApprovalChoiceScope
impl PartialEq for ApprovalChoiceScope
Source§impl Serialize for ApprovalChoiceScope
impl Serialize for ApprovalChoiceScope
impl StructuralPartialEq for ApprovalChoiceScope
Auto Trait Implementations§
impl Freeze for ApprovalChoiceScope
impl RefUnwindSafe for ApprovalChoiceScope
impl Send for ApprovalChoiceScope
impl Sync for ApprovalChoiceScope
impl Unpin for ApprovalChoiceScope
impl UnsafeUnpin for ApprovalChoiceScope
impl UnwindSafe for ApprovalChoiceScope
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