pub struct OpenAIStreamToolCall {
pub index: u32,
pub id: Option<String>,
pub call_type: Option<String>,
pub function: Option<OpenAIStreamFunction>,
}Expand description
OpenAI streaming tool call.
Fields§
§index: u32§id: Option<String>§call_type: Option<String>§function: Option<OpenAIStreamFunction>Trait Implementations§
Source§impl Clone for OpenAIStreamToolCall
impl Clone for OpenAIStreamToolCall
Source§fn clone(&self) -> OpenAIStreamToolCall
fn clone(&self) -> OpenAIStreamToolCall
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 OpenAIStreamToolCall
impl Debug for OpenAIStreamToolCall
Source§impl<'de> Deserialize<'de> for OpenAIStreamToolCall
impl<'de> Deserialize<'de> for OpenAIStreamToolCall
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 OpenAIStreamToolCall
impl RefUnwindSafe for OpenAIStreamToolCall
impl Send for OpenAIStreamToolCall
impl Sync for OpenAIStreamToolCall
impl Unpin for OpenAIStreamToolCall
impl UnwindSafe for OpenAIStreamToolCall
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