pub struct FunctionSchema {
pub name: String,
pub return_type: String,
pub arg_names: Vec<String>,
}Expand description
The schema (argument shape + return type) of one inline-catalog function,
extracted for registration as a [SchemaOnlyFunction].
Fields§
§name: StringThe function name as it appears in the catalog’s functions map key.
return_type: StringThe declared return type (one of: string, number, boolean, array, object, any, void).
arg_names: Vec<String>The names of declared arguments (keys of args.properties).
Trait Implementations§
Source§impl Clone for FunctionSchema
impl Clone for FunctionSchema
Source§fn clone(&self) -> FunctionSchema
fn clone(&self) -> FunctionSchema
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 FunctionSchema
impl Debug for FunctionSchema
impl Eq for FunctionSchema
Source§impl PartialEq for FunctionSchema
impl PartialEq for FunctionSchema
Source§fn eq(&self, other: &FunctionSchema) -> bool
fn eq(&self, other: &FunctionSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionSchema
Auto Trait Implementations§
impl Freeze for FunctionSchema
impl RefUnwindSafe for FunctionSchema
impl Send for FunctionSchema
impl Sync for FunctionSchema
impl Unpin for FunctionSchema
impl UnsafeUnpin for FunctionSchema
impl UnwindSafe for FunctionSchema
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