#[non_exhaustive]pub enum ComputerUseChoice {
Ask,
AlwaysAllow,
Unknown(String),
}Expand description
A capability dropdown’s value. Open: the read result carries it, so an older client tolerates a value it does not know.
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.
Ask
Each use shows the approval card.
AlwaysAllow
The whole Mac is allowed for this capability.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ComputerUseChoice
impl Clone for ComputerUseChoice
Source§impl Debug for ComputerUseChoice
impl Debug for ComputerUseChoice
Source§impl<'de> Deserialize<'de> for ComputerUseChoice
impl<'de> Deserialize<'de> for ComputerUseChoice
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComputerUseChoice
Source§impl PartialEq for ComputerUseChoice
impl PartialEq for ComputerUseChoice
Source§impl Serialize for ComputerUseChoice
impl Serialize for ComputerUseChoice
impl StructuralPartialEq for ComputerUseChoice
Auto Trait Implementations§
impl Forget for ComputerUseChoice
impl Freeze for ComputerUseChoice
impl Move for ComputerUseChoice
impl RefUnwindSafe for ComputerUseChoice
impl Send for ComputerUseChoice
impl Sync for ComputerUseChoice
impl Unpin for ComputerUseChoice
impl UnsafeUnpin for ComputerUseChoice
impl UnwindSafe for ComputerUseChoice
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