pub struct ToolSurface {
pub name: String,
pub description: Option<String>,
pub input_schema: Option<Value>,
pub output_schema: Option<Value>,
pub declared_permissions: Vec<DeclaredPermission>,
pub defined_at: Option<SourceLocation>,
}Expand description
A declared tool/function exposed by the extension.
Fields§
§name: String§description: Option<String>§input_schema: Option<Value>JSON Schema of the tool’s input parameters.
output_schema: Option<Value>JSON Schema of the tool’s output.
declared_permissions: Vec<DeclaredPermission>Permissions declared by the tool (if any).
defined_at: Option<SourceLocation>Source location where the tool is defined.
Trait Implementations§
Source§impl Clone for ToolSurface
impl Clone for ToolSurface
Source§fn clone(&self) -> ToolSurface
fn clone(&self) -> ToolSurface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolSurface
impl Debug for ToolSurface
Source§impl<'de> Deserialize<'de> for ToolSurface
impl<'de> Deserialize<'de> for ToolSurface
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
Auto Trait Implementations§
impl Freeze for ToolSurface
impl RefUnwindSafe for ToolSurface
impl Send for ToolSurface
impl Sync for ToolSurface
impl Unpin for ToolSurface
impl UnsafeUnpin for ToolSurface
impl UnwindSafe for ToolSurface
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