pub struct ChatCompletionToolChoiceFunction {
pub type: Option<ChatCompletionToolType>,
pub function: ChatCompletionToolChoiceFunctionName,
}Fields§
§type: Option<ChatCompletionToolType>The type of the tool. Currently, only ‘function’ is supported.
function: ChatCompletionToolChoiceFunctionNameName of the function.
Trait Implementations§
Source§impl Clone for ChatCompletionToolChoiceFunction
impl Clone for ChatCompletionToolChoiceFunction
Source§fn clone(&self) -> ChatCompletionToolChoiceFunction
fn clone(&self) -> ChatCompletionToolChoiceFunction
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 ChatCompletionToolChoiceFunction
impl<'de> Deserialize<'de> for ChatCompletionToolChoiceFunction
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 ChatCompletionToolChoiceFunction
impl PartialEq for ChatCompletionToolChoiceFunction
Source§fn eq(&self, other: &ChatCompletionToolChoiceFunction) -> bool
fn eq(&self, other: &ChatCompletionToolChoiceFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatCompletionToolChoiceFunction
Auto Trait Implementations§
impl Freeze for ChatCompletionToolChoiceFunction
impl RefUnwindSafe for ChatCompletionToolChoiceFunction
impl Send for ChatCompletionToolChoiceFunction
impl Sync for ChatCompletionToolChoiceFunction
impl Unpin for ChatCompletionToolChoiceFunction
impl UnwindSafe for ChatCompletionToolChoiceFunction
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