pub struct CommandsConfig {
pub allow_list: Vec<String>,
pub deny_list: Vec<String>,
pub allow_glob: Vec<String>,
pub deny_glob: Vec<String>,
pub allow_regex: Vec<String>,
pub deny_regex: Vec<String>,
}
Expand description
Command execution configuration
Fields§
§allow_list: Vec<String>
Commands that can be executed without prompting
deny_list: Vec<String>
Commands that are always denied
allow_glob: Vec<String>
Glob patterns allowed for shell commands (applies to run_terminal_cmd/Bash)
deny_glob: Vec<String>
Glob patterns denied for shell commands
allow_regex: Vec<String>
Regex allow patterns for shell commands
deny_regex: Vec<String>
Regex deny patterns for shell commands
Trait Implementations§
Source§impl Clone for CommandsConfig
impl Clone for CommandsConfig
Source§fn clone(&self) -> CommandsConfig
fn clone(&self) -> CommandsConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandsConfig
impl Debug for CommandsConfig
Source§impl Default for CommandsConfig
impl Default for CommandsConfig
Source§impl<'de> Deserialize<'de> for CommandsConfig
impl<'de> Deserialize<'de> for CommandsConfig
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 CommandsConfig
impl RefUnwindSafe for CommandsConfig
impl Send for CommandsConfig
impl Sync for CommandsConfig
impl Unpin for CommandsConfig
impl UnwindSafe for CommandsConfig
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