pub struct ToolPolicyRuleConfig {
pub tool: String,
pub action: String,
pub input_constraints: Vec<InputConstraintConfig>,
}Expand description
A single tool policy rule in TOML format.
Fields§
§tool: StringTool name pattern (exact or glob with *).
action: String"allow", "warn", or "deny".
input_constraints: Vec<InputConstraintConfig>Optional input constraints.
Trait Implementations§
Source§impl Clone for ToolPolicyRuleConfig
impl Clone for ToolPolicyRuleConfig
Source§fn clone(&self) -> ToolPolicyRuleConfig
fn clone(&self) -> ToolPolicyRuleConfig
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 ToolPolicyRuleConfig
impl Debug for ToolPolicyRuleConfig
Source§impl<'de> Deserialize<'de> for ToolPolicyRuleConfig
impl<'de> Deserialize<'de> for ToolPolicyRuleConfig
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 ToolPolicyRuleConfig
impl RefUnwindSafe for ToolPolicyRuleConfig
impl Send for ToolPolicyRuleConfig
impl Sync for ToolPolicyRuleConfig
impl Unpin for ToolPolicyRuleConfig
impl UnsafeUnpin for ToolPolicyRuleConfig
impl UnwindSafe for ToolPolicyRuleConfig
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