pub struct ChatContentSnapshotEvent {
pub choice_index: u32,
pub delta: String,
pub snapshot: String,
pub parsed: Option<JsonPayload>,
}Expand description
表示聊天文本增量和当前聚合快照。
Fields§
§choice_index: u32候选索引。
delta: String本次文本增量。
snapshot: String当前累计文本。
parsed: Option<JsonPayload>如果当前文本是合法 JSON,则提供解析结果。
Trait Implementations§
Source§impl Clone for ChatContentSnapshotEvent
impl Clone for ChatContentSnapshotEvent
Source§fn clone(&self) -> ChatContentSnapshotEvent
fn clone(&self) -> ChatContentSnapshotEvent
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 ChatContentSnapshotEvent
impl Debug for ChatContentSnapshotEvent
Source§impl<'de> Deserialize<'de> for ChatContentSnapshotEvent
impl<'de> Deserialize<'de> for ChatContentSnapshotEvent
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 ChatContentSnapshotEvent
impl PartialEq for ChatContentSnapshotEvent
Source§impl Serialize for ChatContentSnapshotEvent
impl Serialize for ChatContentSnapshotEvent
impl StructuralPartialEq for ChatContentSnapshotEvent
Auto Trait Implementations§
impl Freeze for ChatContentSnapshotEvent
impl RefUnwindSafe for ChatContentSnapshotEvent
impl Send for ChatContentSnapshotEvent
impl Sync for ChatContentSnapshotEvent
impl Unpin for ChatContentSnapshotEvent
impl UnsafeUnpin for ChatContentSnapshotEvent
impl UnwindSafe for ChatContentSnapshotEvent
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