pub struct Usage {
pub input_tokens: u32,
pub output_tokens: u32,
}Expand description
How many tokens a call consumed.
Providers disagree about the names (input_tokens, prompt_tokens,
prompt_eval_count) but not the meaning, so they are normalised here —
this is what Telescope charts and what a bill is made of.
Fields§
§input_tokens: u32§output_tokens: u32Implementations§
Trait Implementations§
impl Copy for Usage
impl Eq for Usage
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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