pub struct MessageToolCall {
pub id: String,
pub call_type: String,
pub function: MessageToolCallFunction,
}Expand description
One tool call in an assistant message (OpenAI shape: id, type “function”, function { name, arguments })
Fields§
§id: String§call_type: String§function: MessageToolCallFunctionTrait Implementations§
Source§impl Clone for MessageToolCall
impl Clone for MessageToolCall
Source§fn clone(&self) -> MessageToolCall
fn clone(&self) -> MessageToolCall
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 MessageToolCall
impl Debug for MessageToolCall
Source§impl<'de> Deserialize<'de> for MessageToolCall
impl<'de> Deserialize<'de> for MessageToolCall
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 MessageToolCall
impl RefUnwindSafe for MessageToolCall
impl Send for MessageToolCall
impl Sync for MessageToolCall
impl Unpin for MessageToolCall
impl UnsafeUnpin for MessageToolCall
impl UnwindSafe for MessageToolCall
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