pub struct ChatCompletionFunction {
pub name: String,
pub description: Option<String>,
pub parameters: Value,
}Fields§
§name: StringName of the function.
description: Option<String>Optional description of the function.
parameters: ValueThe parameters the function takes. The model will generate JSON inputs for these parameters.
Trait Implementations§
Source§impl Clone for ChatCompletionFunction
impl Clone for ChatCompletionFunction
Source§fn clone(&self) -> ChatCompletionFunction
fn clone(&self) -> ChatCompletionFunction
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 ChatCompletionFunction
impl Debug for ChatCompletionFunction
Source§impl<'de> Deserialize<'de> for ChatCompletionFunction
impl<'de> Deserialize<'de> for ChatCompletionFunction
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
Source§impl PartialEq for ChatCompletionFunction
impl PartialEq for ChatCompletionFunction
Source§impl Serialize for ChatCompletionFunction
impl Serialize for ChatCompletionFunction
impl StructuralPartialEq for ChatCompletionFunction
Auto Trait Implementations§
impl Freeze for ChatCompletionFunction
impl RefUnwindSafe for ChatCompletionFunction
impl Send for ChatCompletionFunction
impl Sync for ChatCompletionFunction
impl Unpin for ChatCompletionFunction
impl UnwindSafe for ChatCompletionFunction
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