pub struct ChatRefusalSnapshotEvent {
pub choice_index: u32,
pub delta: String,
pub snapshot: String,
}Expand description
表示拒绝回答文本增量和当前聚合快照。
Fields§
§choice_index: u32候选索引。
delta: String本次拒绝文本增量。
snapshot: String当前累计拒绝文本。
Trait Implementations§
Source§impl Clone for ChatRefusalSnapshotEvent
impl Clone for ChatRefusalSnapshotEvent
Source§fn clone(&self) -> ChatRefusalSnapshotEvent
fn clone(&self) -> ChatRefusalSnapshotEvent
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 ChatRefusalSnapshotEvent
impl Debug for ChatRefusalSnapshotEvent
Source§impl<'de> Deserialize<'de> for ChatRefusalSnapshotEvent
impl<'de> Deserialize<'de> for ChatRefusalSnapshotEvent
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 ChatRefusalSnapshotEvent
impl PartialEq for ChatRefusalSnapshotEvent
Source§impl Serialize for ChatRefusalSnapshotEvent
impl Serialize for ChatRefusalSnapshotEvent
impl Eq for ChatRefusalSnapshotEvent
impl StructuralPartialEq for ChatRefusalSnapshotEvent
Auto Trait Implementations§
impl Freeze for ChatRefusalSnapshotEvent
impl RefUnwindSafe for ChatRefusalSnapshotEvent
impl Send for ChatRefusalSnapshotEvent
impl Sync for ChatRefusalSnapshotEvent
impl Unpin for ChatRefusalSnapshotEvent
impl UnsafeUnpin for ChatRefusalSnapshotEvent
impl UnwindSafe for ChatRefusalSnapshotEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.