pub struct Grant {
pub root: bool,
pub workflows: bool,
pub subagents: bool,
pub roles: Vec<Role>,
}Expand description
Who may call a tool. These flags gate the INTERNAL tools — the ones that
reach agentd’s own state — so a caller they do not name is refused. Code
and MCP tools are not gated by them: an operator who wired a server in has
already made that decision, and a subagent narrowed by an explicit allow
list is held to that list instead.
Fields§
§root: bool§workflows: bool§subagents: bool§roles: Vec<Role>A2A roles granted by default (user, agent; operator always).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grant
impl<'de> Deserialize<'de> for Grant
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
impl Eq for Grant
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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