pub struct FunctionSchema { /* private fields */ }Expand description
Contains information about function: function name, argument types.
Implementations§
Source§impl FunctionSchema
impl FunctionSchema
Sourcepub fn new(function_name: impl Into<String>) -> FunctionSchema
pub fn new(function_name: impl Into<String>) -> FunctionSchema
Sourcepub fn with_argument(self, argument: FunctionArgument) -> Self
pub fn with_argument(self, argument: FunctionArgument) -> Self
Adds function argument.
Sourcepub fn get_function_name(&self) -> &String
pub fn get_function_name(&self) -> &String
Returns function name.
Sourcepub fn get_arguments(&self) -> &[FunctionArgument]
pub fn get_arguments(&self) -> &[FunctionArgument]
Returns list of arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionSchema
impl RefUnwindSafe for FunctionSchema
impl Send for FunctionSchema
impl Sync for FunctionSchema
impl Unpin 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