pub enum Caller<'a> {
Root,
Workflow,
Subagent {
allow: Option<&'a [String]>,
},
Principal {
role: Role,
grants: &'a [String],
},
}Expand description
The caller asking for definitions / permission.
Variants§
Root
Workflow
Subagent
A subagent, optionally restricted to an explicit allow-list (subagent.run.tools).
Principal
An A2A principal with a role and its explicit grants (patterns).
Used to compute what a principal may SEE (defs_for). Inbound A2A
calls are authorized by the role matrix in a2a::principals rather
than through this arm, because a principal’s reach is decided at the
protocol boundary before any tool is chosen; narrowing per principal
WITHIN one daemon is security.policies, whose match: {principal}
judges the call itself.
Trait Implementations§
impl<'a> StructuralPartialEq for Caller<'a>
Auto Trait Implementations§
impl<'a> Freeze for Caller<'a>
impl<'a> RefUnwindSafe for Caller<'a>
impl<'a> Send for Caller<'a>
impl<'a> Sync for Caller<'a>
impl<'a> Unpin for Caller<'a>
impl<'a> UnsafeUnpin for Caller<'a>
impl<'a> UnwindSafe for Caller<'a>
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