pub struct JsToolDefinition {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
A tool definition (for listing/inspection).
Fields§
§name: StringTool name
description: StringTool description
input_schema: ValueJSON schema for input parameters
Trait Implementations§
Source§impl Clone for JsToolDefinition
impl Clone for JsToolDefinition
Source§fn clone(&self) -> JsToolDefinition
fn clone(&self) -> JsToolDefinition
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 JsToolDefinition
impl Debug for JsToolDefinition
Source§impl FromNapiValue for JsToolDefinition
impl FromNapiValue for JsToolDefinition
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for JsToolDefinition
impl ToNapiValue for JsToolDefinition
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsToolDefinition,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsToolDefinition, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for JsToolDefinition
impl TypeName for JsToolDefinition
Source§impl ValidateNapiValue for JsToolDefinition
impl ValidateNapiValue for JsToolDefinition
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for JsToolDefinition
impl RefUnwindSafe for JsToolDefinition
impl Send for JsToolDefinition
impl Sync for JsToolDefinition
impl Unpin for JsToolDefinition
impl UnwindSafe for JsToolDefinition
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