#[repr(C)]pub struct StableToolSchema {
pub name: StbString,
pub description: StbString,
pub parameters: StbString,
}Expand description
A tool’s provider-facing schema crossing the ABI. name / description are
raw strings; parameters is a JSON Schema serialized to a JSON string (the
host parses it into its native schemars::Schema).
All three are owning StbStrings the plugin produced; the host
frees them via the plugin’s free_string (passed to ToolExecuteFn /
register_tool).
Fields§
§name: StbString§description: StbString§parameters: StbStringJSON-encoded JSON Schema for the tool’s parameters.
Trait Implementations§
Source§impl Clone for StableToolSchema
impl Clone for StableToolSchema
Source§fn clone(&self) -> StableToolSchema
fn clone(&self) -> StableToolSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StableToolSchema
impl Send for StableToolSchema
impl Sync for StableToolSchema
Auto Trait Implementations§
impl Freeze for StableToolSchema
impl RefUnwindSafe for StableToolSchema
impl Unpin for StableToolSchema
impl UnsafeUnpin for StableToolSchema
impl UnwindSafe for StableToolSchema
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