pub struct PolicyMatch {
pub tool: Option<String>,
pub tags: Vec<String>,
pub caller: Vec<PolicyCaller>,
pub principal: Option<String>,
pub args: Option<String>,
}Fields§
§tool: Option<String>Tool-name glob (fs.*). Absent matches every tool.
Every listed trifecta tag must be present on the tool.
caller: Vec<PolicyCaller>Which callers this applies to: root, workflow, subagent.
principal: Option<String>Principal-id glob, for calls carrying one.
args: Option<String>A CEL predicate over args, tool and caller. Needs the cel
feature; a build without it refuses the config rather than evaluating
an argument guard to “no match”.
Trait Implementations§
Source§impl Clone for PolicyMatch
impl Clone for PolicyMatch
Source§fn clone(&self) -> PolicyMatch
fn clone(&self) -> PolicyMatch
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 PolicyMatch
impl Debug for PolicyMatch
Source§impl Default for PolicyMatch
impl Default for PolicyMatch
Source§fn default() -> PolicyMatch
fn default() -> PolicyMatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyMatchwhere
PolicyMatch: Default,
impl<'de> Deserialize<'de> for PolicyMatchwhere
PolicyMatch: Default,
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
Source§impl PartialEq for PolicyMatch
impl PartialEq for PolicyMatch
impl StructuralPartialEq for PolicyMatch
Auto Trait Implementations§
impl Freeze for PolicyMatch
impl RefUnwindSafe for PolicyMatch
impl Send for PolicyMatch
impl Sync for PolicyMatch
impl Unpin for PolicyMatch
impl UnsafeUnpin for PolicyMatch
impl UnwindSafe for PolicyMatch
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