pub struct ChatContentDoneEvent {
pub choice_index: u32,
pub content: String,
pub parsed: Option<JsonPayload>,
}Expand description
表示聊天文本完成事件。
Fields§
§choice_index: u32候选索引。
content: String完整文本。
parsed: Option<JsonPayload>如果完整文本是合法 JSON,则提供解析结果。
Trait Implementations§
Source§impl Clone for ChatContentDoneEvent
impl Clone for ChatContentDoneEvent
Source§fn clone(&self) -> ChatContentDoneEvent
fn clone(&self) -> ChatContentDoneEvent
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 ChatContentDoneEvent
impl Debug for ChatContentDoneEvent
Source§impl<'de> Deserialize<'de> for ChatContentDoneEvent
impl<'de> Deserialize<'de> for ChatContentDoneEvent
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 ChatContentDoneEvent
impl PartialEq for ChatContentDoneEvent
Source§impl Serialize for ChatContentDoneEvent
impl Serialize for ChatContentDoneEvent
impl StructuralPartialEq for ChatContentDoneEvent
Auto Trait Implementations§
impl Freeze for ChatContentDoneEvent
impl RefUnwindSafe for ChatContentDoneEvent
impl Send for ChatContentDoneEvent
impl Sync for ChatContentDoneEvent
impl Unpin for ChatContentDoneEvent
impl UnsafeUnpin for ChatContentDoneEvent
impl UnwindSafe for ChatContentDoneEvent
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