pub struct ChatCompletionNamedToolChoiceFunction {
pub name: String,
}Expand description
ChatCompletionNamedToolChoiceFunction
JSON schema
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"description": "The name of the function to call.",
"type": "string"
}
}
}Fields§
§name: StringThe name of the function to call.
Trait Implementations§
Source§impl Clone for ChatCompletionNamedToolChoiceFunction
impl Clone for ChatCompletionNamedToolChoiceFunction
Source§fn clone(&self) -> ChatCompletionNamedToolChoiceFunction
fn clone(&self) -> ChatCompletionNamedToolChoiceFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChatCompletionNamedToolChoiceFunction
impl<'de> Deserialize<'de> for ChatCompletionNamedToolChoiceFunction
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 ChatCompletionNamedToolChoiceFunction
impl RefUnwindSafe for ChatCompletionNamedToolChoiceFunction
impl Send for ChatCompletionNamedToolChoiceFunction
impl Sync for ChatCompletionNamedToolChoiceFunction
impl Unpin for ChatCompletionNamedToolChoiceFunction
impl UnsafeUnpin for ChatCompletionNamedToolChoiceFunction
impl UnwindSafe for ChatCompletionNamedToolChoiceFunction
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