pub struct TextPartDelta {
    pub text: String,
    pub citation: Option<CitationDelta>,
}Expand description
A delta update for a text part, used in streaming or incremental updates of a message.
Fields§
§text: String§citation: Option<CitationDelta>Implementations§
Source§impl TextPartDelta
 
impl TextPartDelta
pub fn new(text: impl Into<String>) -> Self
pub fn with_citation_delta(self, citation: CitationDelta) -> Self
Trait Implementations§
Source§impl Clone for TextPartDelta
 
impl Clone for TextPartDelta
Source§fn clone(&self) -> TextPartDelta
 
fn clone(&self) -> TextPartDelta
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 TextPartDelta
 
impl Debug for TextPartDelta
Source§impl Default for TextPartDelta
 
impl Default for TextPartDelta
Source§fn default() -> TextPartDelta
 
fn default() -> TextPartDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextPartDelta
 
impl<'de> Deserialize<'de> for TextPartDelta
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 TextPartDelta
 
impl PartialEq for TextPartDelta
Source§impl Serialize for TextPartDelta
 
impl Serialize for TextPartDelta
impl StructuralPartialEq for TextPartDelta
Auto Trait Implementations§
impl Freeze for TextPartDelta
impl RefUnwindSafe for TextPartDelta
impl Send for TextPartDelta
impl Sync for TextPartDelta
impl Unpin for TextPartDelta
impl UnwindSafe for TextPartDelta
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