pub struct DestructiveVerifierConfig {
pub enabled: bool,
pub allowed_paths: Vec<String>,
pub extra_patterns: Vec<String>,
pub shell_tools: Vec<String>,
}Expand description
Configuration for the destructive command verifier.
allowed_paths: when empty (the default), ALL destructive commands are denied.
This is a conservative default: to allow e.g. rm -rf /tmp/build you must
explicitly add /tmp/build to allowed_paths.
shell_tools: the set of tool names considered shell executors. Defaults to
["bash", "shell", "terminal"]. Add custom names here if your setup registers
shell tools under different names (e.g., via MCP or ACP integrations).
Fields§
§enabled: bool§allowed_paths: Vec<String>Explicit path prefixes under which destructive commands are permitted. Empty = deny-all destructive commands (safest default).
extra_patterns: Vec<String>Additional command patterns to treat as destructive (substring match).
shell_tools: Vec<String>Tool names to treat as shell executors (case-insensitive).
Default: ["bash", "shell", "terminal"].
Trait Implementations§
Source§impl Clone for DestructiveVerifierConfig
impl Clone for DestructiveVerifierConfig
Source§fn clone(&self) -> DestructiveVerifierConfig
fn clone(&self) -> DestructiveVerifierConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DestructiveVerifierConfig
impl Debug for DestructiveVerifierConfig
Source§impl Default for DestructiveVerifierConfig
impl Default for DestructiveVerifierConfig
Source§impl<'de> Deserialize<'de> for DestructiveVerifierConfig
impl<'de> Deserialize<'de> for DestructiveVerifierConfig
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>,
Auto Trait Implementations§
impl Freeze for DestructiveVerifierConfig
impl RefUnwindSafe for DestructiveVerifierConfig
impl Send for DestructiveVerifierConfig
impl Sync for DestructiveVerifierConfig
impl Unpin for DestructiveVerifierConfig
impl UnsafeUnpin for DestructiveVerifierConfig
impl UnwindSafe for DestructiveVerifierConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request