pub struct StreamResult {
pub text: String,
pub token_count: usize,
pub ttft: Duration,
pub decode_duration: Duration,
pub total_duration: Duration,
pub decode_tok_s: f64,
pub finish_reason: String,
}Fields§
§text: String§token_count: usize§ttft: Duration§decode_duration: Duration§total_duration: Duration§decode_tok_s: f64§finish_reason: StringAuto Trait Implementations§
impl Freeze for StreamResult
impl RefUnwindSafe for StreamResult
impl Send for StreamResult
impl Sync for StreamResult
impl Unpin for StreamResult
impl UnwindSafe for StreamResult
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