pub struct CommandPolicy {
pub mode: PolicyMode,
pub allow: Vec<String>,
pub deny: Vec<String>,
pub shell: bool,
pub approve: bool,
pub tools: Option<Vec<ToolName>>,
}Fields§
§mode: PolicyMode§allow: Vec<String>§deny: Vec<String>§shell: bool§approve: bool§tools: Option<Vec<ToolName>>Trait Implementations§
Source§impl Clone for CommandPolicy
impl Clone for CommandPolicy
Source§fn clone(&self) -> CommandPolicy
fn clone(&self) -> CommandPolicy
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 CommandPolicy
impl Debug for CommandPolicy
Source§impl Default for CommandPolicy
impl Default for CommandPolicy
Source§impl<'de> Deserialize<'de> for CommandPolicy
impl<'de> Deserialize<'de> for CommandPolicy
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
Auto Trait Implementations§
impl Freeze for CommandPolicy
impl RefUnwindSafe for CommandPolicy
impl Send for CommandPolicy
impl Sync for CommandPolicy
impl Unpin for CommandPolicy
impl UnsafeUnpin for CommandPolicy
impl UnwindSafe for CommandPolicy
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