pub struct FinalizedStream {
pub output: Vec<OutputChoice>,
pub usage: Option<UsageMetrics>,
pub metadata: StreamMetadata,
}Expand description
Aggregated result from a streaming response.
Fields§
§output: Vec<OutputChoice>The output choices (matches OpenAI response format)
usage: Option<UsageMetrics>Usage metrics extracted from the stream
metadata: StreamMetadataMetadata (model and any extras)
Trait Implementations§
Source§impl Clone for FinalizedStream
impl Clone for FinalizedStream
Source§fn clone(&self) -> FinalizedStream
fn clone(&self) -> FinalizedStream
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 moreAuto Trait Implementations§
impl Freeze for FinalizedStream
impl RefUnwindSafe for FinalizedStream
impl Send for FinalizedStream
impl Sync for FinalizedStream
impl Unpin for FinalizedStream
impl UnwindSafe for FinalizedStream
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