pub struct ChatCompletionFunctionDefinition {
pub name: String,
pub description: Option<String>,
pub parameters: Option<Value>,
}Fields§
§name: StringThe name of the function
description: Option<String>The description of the function
parameters: Option<Value>The parameters of the function formatted in JSON Schema API Reference See more information about JSON Schema.
Trait Implementations§
Source§impl Clone for ChatCompletionFunctionDefinition
impl Clone for ChatCompletionFunctionDefinition
Source§fn clone(&self) -> ChatCompletionFunctionDefinition
fn clone(&self) -> ChatCompletionFunctionDefinition
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<'de> Deserialize<'de> for ChatCompletionFunctionDefinition
impl<'de> Deserialize<'de> for ChatCompletionFunctionDefinition
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 ChatCompletionFunctionDefinition
impl RefUnwindSafe for ChatCompletionFunctionDefinition
impl Send for ChatCompletionFunctionDefinition
impl Sync for ChatCompletionFunctionDefinition
impl Unpin for ChatCompletionFunctionDefinition
impl UnwindSafe for ChatCompletionFunctionDefinition
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