pub struct AuthToolDef {
pub base_tool: Tool,
pub authorization: Option<&'static str>,
pub input_requirements: &'static [(&'static str, &'static str)],
pub output_requirements: &'static [(&'static str, &'static str)],
}Expand description
A tool definition with authorization metadata attached.
Fields§
§base_tool: ToolThe base rmcp tool (name, description, full schemas)
Tool-level gate: entire tool hidden if user lacks this capability
input_requirements: &'static [(&'static str, &'static str)]Field-level requirements for input schema shaping
output_requirements: &'static [(&'static str, &'static str)]Variant-level requirements for output schema shaping
Auto Trait Implementations§
impl Freeze for AuthToolDef
impl RefUnwindSafe for AuthToolDef
impl Send for AuthToolDef
impl Sync for AuthToolDef
impl Unpin for AuthToolDef
impl UnsafeUnpin for AuthToolDef
impl UnwindSafe for AuthToolDef
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