pub struct ChatStreamSummary {
pub finish_reason: Option<FinishReason>,
pub usage: Option<Usage>,
pub metadata: ChatMetadata,
pub structured: Option<StructuredOutput>,
}Expand description
Terminal stream summary. It deliberately omits the full text, so a stream never forces the runtime to buffer unbounded output.
Fields§
§finish_reason: Option<FinishReason>§usage: Option<Usage>§metadata: ChatMetadata§structured: Option<StructuredOutput>Trait Implementations§
Source§impl Clone for ChatStreamSummary
impl Clone for ChatStreamSummary
Source§impl Debug for ChatStreamSummary
impl Debug for ChatStreamSummary
Source§impl<'de> Deserialize<'de> for ChatStreamSummary
impl<'de> Deserialize<'de> for ChatStreamSummary
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 ChatStreamSummary
impl PartialEq for ChatStreamSummary
Source§impl Serialize for ChatStreamSummary
impl Serialize for ChatStreamSummary
impl StructuralPartialEq for ChatStreamSummary
Auto Trait Implementations§
impl Freeze for ChatStreamSummary
impl RefUnwindSafe for ChatStreamSummary
impl Send for ChatStreamSummary
impl Sync for ChatStreamSummary
impl Unpin for ChatStreamSummary
impl UnsafeUnpin for ChatStreamSummary
impl UnwindSafe for ChatStreamSummary
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