pub struct ToolSpec {
pub name: String,
pub description: String,
pub required_permission: &'static str,
pub resource_id: String,
}Expand description
Metadata describing the authorization boundary for a protected tool.
Fields§
§name: StringTool name exposed to an agent or MCP client.
description: StringHuman-readable description.
required_permission: &'static strPermission required to invoke this tool.
resource_id: StringResource identifier the permission applies to.
Trait Implementations§
impl Eq for ToolSpec
impl StructuralPartialEq for ToolSpec
Auto Trait Implementations§
impl Freeze for ToolSpec
impl RefUnwindSafe for ToolSpec
impl Send for ToolSpec
impl Sync for ToolSpec
impl Unpin for ToolSpec
impl UnsafeUnpin for ToolSpec
impl UnwindSafe for ToolSpec
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