pub struct PolicyModeConfig {
pub auto_approve: AutoApproveSet,
pub denied_tools: Vec<String>,
pub allow_writes: bool,
pub allow_process: bool,
pub allow_network: bool,
pub requires_user_to_exit: bool,
}Fields§
§auto_approve: AutoApproveSet§denied_tools: Vec<String>§allow_writes: bool§allow_process: bool§allow_network: bool§requires_user_to_exit: boolImplementations§
Source§impl PolicyModeConfig
impl PolicyModeConfig
pub fn for_mode(mode: PolicyMode) -> Self
pub fn default_mode() -> Self
pub fn accept_all() -> Self
pub fn plan() -> Self
pub fn bypass() -> Self
Trait Implementations§
Source§impl Clone for PolicyModeConfig
impl Clone for PolicyModeConfig
Source§fn clone(&self) -> PolicyModeConfig
fn clone(&self) -> PolicyModeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyModeConfig
impl Debug for PolicyModeConfig
Source§impl Default for PolicyModeConfig
impl Default for PolicyModeConfig
Source§impl<'de> Deserialize<'de> for PolicyModeConfig
impl<'de> Deserialize<'de> for PolicyModeConfig
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 PolicyModeConfig
Source§impl PartialEq for PolicyModeConfig
impl PartialEq for PolicyModeConfig
Source§fn eq(&self, other: &PolicyModeConfig) -> bool
fn eq(&self, other: &PolicyModeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PolicyModeConfig
impl Serialize for PolicyModeConfig
impl StructuralPartialEq for PolicyModeConfig
Auto Trait Implementations§
impl Freeze for PolicyModeConfig
impl RefUnwindSafe for PolicyModeConfig
impl Send for PolicyModeConfig
impl Sync for PolicyModeConfig
impl Unpin for PolicyModeConfig
impl UnsafeUnpin for PolicyModeConfig
impl UnwindSafe for PolicyModeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.