pub struct DeltaContent {
pub role: Option<String>,
pub content: Option<String>,
pub tool_calls: Option<Vec<DeltaToolCall>>,
}Expand description
Content delta for streaming responses
Fields§
§role: Option<String>Role (only sent in first chunk)
content: Option<String>Content delta
tool_calls: Option<Vec<DeltaToolCall>>Tool calls delta
Implementations§
Trait Implementations§
Source§impl Clone for DeltaContent
impl Clone for DeltaContent
Source§fn clone(&self) -> DeltaContent
fn clone(&self) -> DeltaContent
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 DeltaContent
impl Debug for DeltaContent
Source§impl Default for DeltaContent
impl Default for DeltaContent
Source§fn default() -> DeltaContent
fn default() -> DeltaContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeltaContent
impl<'de> Deserialize<'de> for DeltaContent
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 DeltaContent
impl RefUnwindSafe for DeltaContent
impl Send for DeltaContent
impl Sync for DeltaContent
impl Unpin for DeltaContent
impl UnsafeUnpin for DeltaContent
impl UnwindSafe for DeltaContent
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