pub enum GrantMode {
Always,
Once,
PerUse,
Never,
}Expand description
How the capability is granted — controls the approval flow.
Variants§
Always
Auto-approved, no human prompt.
Once
Ask once; remember for this session.
PerUse
Ask every time.
Never
Never allowed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GrantMode
impl<'de> Deserialize<'de> for GrantMode
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 GrantMode
impl StructuralPartialEq for GrantMode
Auto Trait Implementations§
impl Freeze for GrantMode
impl RefUnwindSafe for GrantMode
impl Send for GrantMode
impl Sync for GrantMode
impl Unpin for GrantMode
impl UnsafeUnpin for GrantMode
impl UnwindSafe for GrantMode
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