pub struct ProviderUsage {
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_input_tokens: u64,
pub cache_creation_input_tokens: u64,
pub reasoning_tokens: Option<u64>,
}Fields§
§input_tokens: u64§output_tokens: u64§cache_read_input_tokens: u64§cache_creation_input_tokens: u64§reasoning_tokens: Option<u64>Trait Implementations§
Source§impl Clone for ProviderUsage
impl Clone for ProviderUsage
Source§fn clone(&self) -> ProviderUsage
fn clone(&self) -> ProviderUsage
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 Debug for ProviderUsage
impl Debug for ProviderUsage
Source§impl Default for ProviderUsage
impl Default for ProviderUsage
Source§fn default() -> ProviderUsage
fn default() -> ProviderUsage
Returns the “default value” for a type. Read more
impl Eq for ProviderUsage
Source§impl PartialEq for ProviderUsage
impl PartialEq for ProviderUsage
impl StructuralPartialEq for ProviderUsage
Auto Trait Implementations§
impl Freeze for ProviderUsage
impl RefUnwindSafe for ProviderUsage
impl Send for ProviderUsage
impl Sync for ProviderUsage
impl Unpin for ProviderUsage
impl UnsafeUnpin for ProviderUsage
impl UnwindSafe for ProviderUsage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.