pub struct DeltaMessage {
pub content: Option<String>,
pub reasoning_content: Option<String>,
pub role: Option<Role>,
pub tool_calls: Option<Vec<DeltaToolCall>>,
pub annotations: Option<Vec<Annotation>>,
pub error_message: Option<String>,
pub audio: Option<DeltaAudio>,
}Expand description
Delta message in a streaming response.
Fields§
§content: Option<String>Message content
reasoning_content: Option<String>Reasoning content
role: Option<Role>Message role
tool_calls: Option<Vec<DeltaToolCall>>Tool calls
annotations: Option<Vec<Annotation>>Annotations
error_message: Option<String>Error message
audio: Option<DeltaAudio>Audio data
Trait Implementations§
Source§impl Clone for DeltaMessage
impl Clone for DeltaMessage
Source§fn clone(&self) -> DeltaMessage
fn clone(&self) -> DeltaMessage
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 DeltaMessage
impl Debug for DeltaMessage
Source§impl<'de> Deserialize<'de> for DeltaMessage
impl<'de> Deserialize<'de> for DeltaMessage
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 DeltaMessage
impl RefUnwindSafe for DeltaMessage
impl Send for DeltaMessage
impl Sync for DeltaMessage
impl Unpin for DeltaMessage
impl UnsafeUnpin for DeltaMessage
impl UnwindSafe for DeltaMessage
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