pub struct ChatCompletionChunkDelta {
pub role: Option<MessageRole>,
pub content: Option<String>,
pub thought: Option<String>,
}Expand description
Represents the delta payload of a streaming chat completion chunk.
Fields§
§role: Option<MessageRole>The role of the message author.
content: Option<String>The content of the message.
thought: Option<String>The thinking content (for Gemini 3 models).
Trait Implementations§
Source§impl Clone for ChatCompletionChunkDelta
impl Clone for ChatCompletionChunkDelta
Source§fn clone(&self) -> ChatCompletionChunkDelta
fn clone(&self) -> ChatCompletionChunkDelta
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 ChatCompletionChunkDelta
impl Debug for ChatCompletionChunkDelta
Source§impl<'de> Deserialize<'de> for ChatCompletionChunkDelta
impl<'de> Deserialize<'de> for ChatCompletionChunkDelta
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 ChatCompletionChunkDelta
impl RefUnwindSafe for ChatCompletionChunkDelta
impl Send for ChatCompletionChunkDelta
impl Sync for ChatCompletionChunkDelta
impl Unpin for ChatCompletionChunkDelta
impl UnsafeUnpin for ChatCompletionChunkDelta
impl UnwindSafe for ChatCompletionChunkDelta
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