pub struct UsageTotals {
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub reasoning_tokens: u64,
}Fields§
§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§reasoning_tokens: u64Trait Implementations§
Source§impl Clone for UsageTotals
impl Clone for UsageTotals
impl Copy for UsageTotals
Source§impl Debug for UsageTotals
impl Debug for UsageTotals
Source§impl Default for UsageTotals
impl Default for UsageTotals
Source§impl<'de> Deserialize<'de> for UsageTotals
impl<'de> Deserialize<'de> for UsageTotals
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UsageTotals
Source§impl PartialEq for UsageTotals
impl PartialEq for UsageTotals
Source§impl Serialize for UsageTotals
impl Serialize for UsageTotals
impl StructuralPartialEq for UsageTotals
Auto Trait Implementations§
impl Freeze for UsageTotals
impl RefUnwindSafe for UsageTotals
impl Send for UsageTotals
impl Sync for UsageTotals
impl Unpin for UsageTotals
impl UnsafeUnpin for UsageTotals
impl UnwindSafe for UsageTotals
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