pub struct ModuleFunctionSchema {
pub name: String,
pub description: String,
pub params: Vec<String>,
pub return_type: Option<String>,
}Expand description
Schema for one callable module function.
This is serialized as MessagePack by module-capability providers.
Fields§
§name: StringFunction name as exported in the module namespace.
description: StringHuman-readable description.
params: Vec<String>Parameter type names (for signatures/completions).
return_type: Option<String>Return type name.
Trait Implementations§
Source§impl Clone for ModuleFunctionSchema
impl Clone for ModuleFunctionSchema
Source§fn clone(&self) -> ModuleFunctionSchema
fn clone(&self) -> ModuleFunctionSchema
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 moreSource§impl Debug for ModuleFunctionSchema
impl Debug for ModuleFunctionSchema
Source§impl PartialEq for ModuleFunctionSchema
impl PartialEq for ModuleFunctionSchema
Source§fn eq(&self, other: &ModuleFunctionSchema) -> bool
fn eq(&self, other: &ModuleFunctionSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleFunctionSchema
Auto Trait Implementations§
impl Freeze for ModuleFunctionSchema
impl RefUnwindSafe for ModuleFunctionSchema
impl Send for ModuleFunctionSchema
impl Sync for ModuleFunctionSchema
impl Unpin for ModuleFunctionSchema
impl UnsafeUnpin for ModuleFunctionSchema
impl UnwindSafe for ModuleFunctionSchema
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