pub enum ToolPolicySubject {
File {
access: FileAccess,
path_arg: String,
},
NetworkRequest {
method: Option<String>,
url_arg: String,
},
Command {
command_arg: String,
},
ExternalAction {
action: String,
target_arg: Option<String>,
},
}Expand description
Static, inspectable description of the security-relevant subject a tool acts on.
Argument names refer to the tool’s JSON schema. The policy runtime resolves them before invoking the handler and never infers authority from the tool name.
Variants§
Trait Implementations§
Source§impl Clone for ToolPolicySubject
impl Clone for ToolPolicySubject
Source§fn clone(&self) -> ToolPolicySubject
fn clone(&self) -> ToolPolicySubject
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 ToolPolicySubject
impl Debug for ToolPolicySubject
impl Eq for ToolPolicySubject
Source§impl PartialEq for ToolPolicySubject
impl PartialEq for ToolPolicySubject
impl StructuralPartialEq for ToolPolicySubject
Auto Trait Implementations§
impl Freeze for ToolPolicySubject
impl RefUnwindSafe for ToolPolicySubject
impl Send for ToolPolicySubject
impl Sync for ToolPolicySubject
impl Unpin for ToolPolicySubject
impl UnsafeUnpin for ToolPolicySubject
impl UnwindSafe for ToolPolicySubject
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.