#[non_exhaustive]pub enum ComputerUseAppChoice {
Ask,
AlwaysAllow,
Blocked,
Unknown(String),
}Expand description
A per-app choice. Open, like ComputerUseChoice.
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 of the app shows the approval card.
AlwaysAllow
The app is used without asking.
Blocked
The app is never used.
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 ComputerUseAppChoice
impl Clone for ComputerUseAppChoice
Source§impl Debug for ComputerUseAppChoice
impl Debug for ComputerUseAppChoice
Source§impl<'de> Deserialize<'de> for ComputerUseAppChoice
impl<'de> Deserialize<'de> for ComputerUseAppChoice
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 ComputerUseAppChoice
Source§impl PartialEq for ComputerUseAppChoice
impl PartialEq for ComputerUseAppChoice
Source§impl Serialize for ComputerUseAppChoice
impl Serialize for ComputerUseAppChoice
impl StructuralPartialEq for ComputerUseAppChoice
Auto Trait Implementations§
impl Freeze for ComputerUseAppChoice
impl RefUnwindSafe for ComputerUseAppChoice
impl Send for ComputerUseAppChoice
impl Sync for ComputerUseAppChoice
impl Unpin for ComputerUseAppChoice
impl UnsafeUnpin for ComputerUseAppChoice
impl UnwindSafe for ComputerUseAppChoice
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