pub struct AssistantTextDeltaEvent {
pub message_id: Option<String>,
pub content_index: usize,
pub delta: Value,
pub snapshot: Value,
}Expand description
表示文本内容增量事件。
Fields§
§message_id: Option<String>message ID。
content_index: usize内容索引。
delta: Value文本增量。
snapshot: Value当前文本内容快照。
Trait Implementations§
Source§impl Clone for AssistantTextDeltaEvent
impl Clone for AssistantTextDeltaEvent
Source§fn clone(&self) -> AssistantTextDeltaEvent
fn clone(&self) -> AssistantTextDeltaEvent
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 AssistantTextDeltaEvent
impl Debug for AssistantTextDeltaEvent
Source§impl<'de> Deserialize<'de> for AssistantTextDeltaEvent
impl<'de> Deserialize<'de> for AssistantTextDeltaEvent
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 AssistantTextDeltaEvent
impl PartialEq for AssistantTextDeltaEvent
Source§impl Serialize for AssistantTextDeltaEvent
impl Serialize for AssistantTextDeltaEvent
impl StructuralPartialEq for AssistantTextDeltaEvent
Auto Trait Implementations§
impl Freeze for AssistantTextDeltaEvent
impl RefUnwindSafe for AssistantTextDeltaEvent
impl Send for AssistantTextDeltaEvent
impl Sync for AssistantTextDeltaEvent
impl Unpin for AssistantTextDeltaEvent
impl UnsafeUnpin for AssistantTextDeltaEvent
impl UnwindSafe for AssistantTextDeltaEvent
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