pub struct LogUsage {
pub input: f64,
pub output: f64,
pub cache_read: f64,
pub cache_write: f64,
pub total_tokens: f64,
pub cost: Option<f64>,
}Fields§
§input: f64§output: f64§cache_read: f64§cache_write: f64§total_tokens: f64§cost: Option<f64>Provider-reported cost; None when the response carried none.
Trait Implementations§
impl Copy for LogUsage
impl StructuralPartialEq for LogUsage
Auto Trait Implementations§
impl Forget for LogUsage
impl Freeze for LogUsage
impl Move for LogUsage
impl RefUnwindSafe for LogUsage
impl Send for LogUsage
impl Sync for LogUsage
impl Unpin for LogUsage
impl UnsafeUnpin for LogUsage
impl UnwindSafe for LogUsage
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