pub struct ChatCompletionChunkDelta {
pub content: Option<String>,
pub reasoning_content: Option<String>,
pub reasoning_details: Option<Vec<ChatCompletionReasoningDetail>>,
pub function_call: Option<ChatCompletionFunctionCallDelta>,
pub refusal: Option<String>,
pub role: Option<ChatCompletionDeltaRole>,
pub annotations: Option<Vec<ChatCompletionAnnotation>>,
pub tool_calls: Option<Vec<ChatCompletionChunkDeltaToolCall>>,
pub obfuscation: Option<String>,
}Fields§
§content: Option<String>§reasoning_content: Option<String>§reasoning_details: Option<Vec<ChatCompletionReasoningDetail>>§function_call: Option<ChatCompletionFunctionCallDelta>§refusal: Option<String>§role: Option<ChatCompletionDeltaRole>§annotations: Option<Vec<ChatCompletionAnnotation>>§tool_calls: Option<Vec<ChatCompletionChunkDeltaToolCall>>§obfuscation: Option<String>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 Default for ChatCompletionChunkDelta
impl Default for ChatCompletionChunkDelta
Source§fn default() -> ChatCompletionChunkDelta
fn default() -> ChatCompletionChunkDelta
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for ChatCompletionChunkDelta
impl PartialEq for ChatCompletionChunkDelta
Source§impl Serialize for ChatCompletionChunkDelta
impl Serialize for ChatCompletionChunkDelta
impl StructuralPartialEq for ChatCompletionChunkDelta
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