#[non_exhaustive]pub struct ComputerUseSettings {
pub computer_control: ComputerUseChoice,
pub screenshots: ComputerUseChoice,
pub blocked_apps: Vec<ComputerUseBlockedApp>,
pub apps: Option<Vec<ComputerUseApp>>,
pub installed_apps: Option<Vec<ComputerUseInstalledApp>>,
}Expand description
computerUseSettings/read result, also answered by
computerUseSettings/update.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.computer_control: ComputerUseChoiceThe computer-control dropdown, as it applies: ask while the stored
blocked-apps list can’t be read.
screenshots: ComputerUseChoiceThe screenshots dropdown, under the same rule.
blocked_apps: Vec<ComputerUseBlockedApp>The user’s blocks in the order they were added, then the built-in
blocks when showBuiltIns asked for them.
apps: Option<Vec<ComputerUseApp>>The apps list: apps Computer Use has asked about, most recent first; then the other saved grants, then the user’s other blocks; then the locked rows. Each app once. A host that serves the list always answers it, so its absence means an older host.
installed_apps: Option<Vec<ComputerUseInstalledApp>>The installed and running apps, sorted by name, when the read asked
for installed.
Trait Implementations§
Source§impl Clone for ComputerUseSettings
impl Clone for ComputerUseSettings
Source§impl Debug for ComputerUseSettings
impl Debug for ComputerUseSettings
Source§impl<'de> Deserialize<'de> for ComputerUseSettings
impl<'de> Deserialize<'de> for ComputerUseSettings
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 ComputerUseSettings
Source§impl PartialEq for ComputerUseSettings
impl PartialEq for ComputerUseSettings
Source§impl Serialize for ComputerUseSettings
impl Serialize for ComputerUseSettings
impl StructuralPartialEq for ComputerUseSettings
Auto Trait Implementations§
impl Forget for ComputerUseSettings
impl Freeze for ComputerUseSettings
impl Move for ComputerUseSettings
impl RefUnwindSafe for ComputerUseSettings
impl Send for ComputerUseSettings
impl Sync for ComputerUseSettings
impl Unpin for ComputerUseSettings
impl UnsafeUnpin for ComputerUseSettings
impl UnwindSafe for ComputerUseSettings
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