pub struct LogCallEnd<'a> {
pub context: LogContext<'a>,
pub elapsed: Duration,
pub usage: Option<&'a Usage>,
pub finish_reason: Option<&'a FinishReason>,
}Expand description
Event emitted on success.
Fields§
§context: LogContext<'a>Common identity / call shape.
elapsed: DurationWall-clock duration from log_call_start to call return.
usage: Option<&'a Usage>Token usage — only meaningful for CallKind::Generate (stream
totals are not available until the stream drains).
finish_reason: Option<&'a FinishReason>Why the model stopped — only meaningful for CallKind::Generate.
Trait Implementations§
Source§impl<'a> Clone for LogCallEnd<'a>
impl<'a> Clone for LogCallEnd<'a>
Source§fn clone(&self) -> LogCallEnd<'a>
fn clone(&self) -> LogCallEnd<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LogCallEnd<'a>
impl<'a> Debug for LogCallEnd<'a>
impl<'a> Copy for LogCallEnd<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogCallEnd<'a>
impl<'a> RefUnwindSafe for LogCallEnd<'a>
impl<'a> Send for LogCallEnd<'a>
impl<'a> Sync for LogCallEnd<'a>
impl<'a> Unpin for LogCallEnd<'a>
impl<'a> UnsafeUnpin for LogCallEnd<'a>
impl<'a> UnwindSafe for LogCallEnd<'a>
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