pub struct ChatCompletionMessageCustomToolCall {
pub id: String,
pub custom: Custom,
pub type_: String,
}Expand description
A call to a custom tool created by the model.
Fields§
§id: StringThe ID of the tool call.
custom: CustomThe custom tool that the model called.
type_: StringThe type of the tool. Always custom.
Trait Implementations§
Source§impl Clone for ChatCompletionMessageCustomToolCall
impl Clone for ChatCompletionMessageCustomToolCall
Source§fn clone(&self) -> ChatCompletionMessageCustomToolCall
fn clone(&self) -> ChatCompletionMessageCustomToolCall
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 ChatCompletionMessageCustomToolCall
impl<'de> Deserialize<'de> for ChatCompletionMessageCustomToolCall
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 ChatCompletionMessageCustomToolCall
impl RefUnwindSafe for ChatCompletionMessageCustomToolCall
impl Send for ChatCompletionMessageCustomToolCall
impl Sync for ChatCompletionMessageCustomToolCall
impl Unpin for ChatCompletionMessageCustomToolCall
impl UnsafeUnpin for ChatCompletionMessageCustomToolCall
impl UnwindSafe for ChatCompletionMessageCustomToolCall
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