pub struct ChatCompletionFunctionCallOption {
pub name: String,
}
Expand description
Specifying a particular function via {"name": "my_function"}
forces the model to call that function.
Fields§
§name: String
The name of the function to call.
Implementations§
Trait Implementations§
Source§impl Clone for ChatCompletionFunctionCallOption
impl Clone for ChatCompletionFunctionCallOption
Source§fn clone(&self) -> ChatCompletionFunctionCallOption
fn clone(&self) -> ChatCompletionFunctionCallOption
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 ChatCompletionFunctionCallOption
impl<'de> Deserialize<'de> for ChatCompletionFunctionCallOption
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 ChatCompletionFunctionCallOption
impl PartialEq for ChatCompletionFunctionCallOption
Source§fn eq(&self, other: &ChatCompletionFunctionCallOption) -> bool
fn eq(&self, other: &ChatCompletionFunctionCallOption) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionFunctionCallOption
Auto Trait Implementations§
impl Freeze for ChatCompletionFunctionCallOption
impl RefUnwindSafe for ChatCompletionFunctionCallOption
impl Send for ChatCompletionFunctionCallOption
impl Sync for ChatCompletionFunctionCallOption
impl Unpin for ChatCompletionFunctionCallOption
impl UnwindSafe for ChatCompletionFunctionCallOption
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