pub struct ToolDescription {
pub name: String,
pub version: String,
pub tool_protocol: u32,
pub operations: Vec<Operation>,
}Expand description
A tool’s answer to describe.
Fields§
§name: String§version: String§tool_protocol: u32The tool protocol version it speaks (TOOL_PROTOCOL).
operations: Vec<Operation>Implementations§
Source§impl ToolDescription
impl ToolDescription
Sourcepub fn compatible(&self) -> Result<(), String>
pub fn compatible(&self) -> Result<(), String>
The handshake: whether the orchestrator can drive it (the same tool protocol version).
pub fn operation(&self, name: &str) -> Option<&Operation>
Trait Implementations§
Source§impl Clone for ToolDescription
impl Clone for ToolDescription
Source§impl Debug for ToolDescription
impl Debug for ToolDescription
Source§impl<'de> Deserialize<'de> for ToolDescription
impl<'de> Deserialize<'de> for ToolDescription
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 ToolDescription
impl PartialEq for ToolDescription
Source§impl Serialize for ToolDescription
impl Serialize for ToolDescription
impl StructuralPartialEq for ToolDescription
Auto Trait Implementations§
impl Forget for ToolDescription
impl Freeze for ToolDescription
impl Move for ToolDescription
impl RefUnwindSafe for ToolDescription
impl Send for ToolDescription
impl Sync for ToolDescription
impl Unpin for ToolDescription
impl UnsafeUnpin for ToolDescriptionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Operation>: UnsafeUnpin,
impl UnwindSafe for ToolDescription
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