pub struct ContentDelta {
    pub index: usize,
    pub part: PartDelta,
}Expand description
Represents a delta update in a message’s content, enabling partial streaming updates in LLM responses.
Fields§
§index: usize§part: PartDeltaTrait Implementations§
Source§impl Clone for ContentDelta
 
impl Clone for ContentDelta
Source§fn clone(&self) -> ContentDelta
 
fn clone(&self) -> ContentDelta
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 ContentDelta
 
impl Debug for ContentDelta
Source§impl<'de> Deserialize<'de> for ContentDelta
 
impl<'de> Deserialize<'de> for ContentDelta
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 ContentDelta
 
impl PartialEq for ContentDelta
Source§impl Serialize for ContentDelta
 
impl Serialize for ContentDelta
impl StructuralPartialEq for ContentDelta
Auto Trait Implementations§
impl Freeze for ContentDelta
impl RefUnwindSafe for ContentDelta
impl Send for ContentDelta
impl Sync for ContentDelta
impl Unpin for ContentDelta
impl UnwindSafe for ContentDelta
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