pub enum ToolDeclaration {
Tool {
tool: ScopedToolDeclaration,
},
Namespace {
name: String,
description: String,
tools: Vec<ScopedToolDeclaration>,
},
}Expand description
A flat client tool or a single-level namespace of client tools.
Requests containing these declarations are currently rejected until native call decoding and result replay can be supported safely.
Variants§
Tool
A tool in the top-level scope.
Fields
§
tool: ScopedToolDeclarationNamespace
A named scope; nested namespaces cannot be represented.
Trait Implementations§
Source§impl Clone for ToolDeclaration
impl Clone for ToolDeclaration
Source§impl Debug for ToolDeclaration
impl Debug for ToolDeclaration
Source§impl<'de> Deserialize<'de> for ToolDeclaration
impl<'de> Deserialize<'de> for ToolDeclaration
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
Source§impl PartialEq for ToolDeclaration
impl PartialEq for ToolDeclaration
Source§impl Serialize for ToolDeclaration
impl Serialize for ToolDeclaration
impl StructuralPartialEq for ToolDeclaration
Auto Trait Implementations§
impl Freeze for ToolDeclaration
impl RefUnwindSafe for ToolDeclaration
impl Send for ToolDeclaration
impl Sync for ToolDeclaration
impl Unpin for ToolDeclaration
impl UnsafeUnpin for ToolDeclaration
impl UnwindSafe for ToolDeclaration
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