pub struct UsageIteration {
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_input_tokens: Option<u64>,
pub cache_creation_input_tokens: Option<u64>,
pub cache_creation: Option<CacheCreation>,
pub iter_type: Option<String>,
}Fields§
§input_tokens: u64§output_tokens: u64§cache_read_input_tokens: Option<u64>§cache_creation_input_tokens: Option<u64>§cache_creation: Option<CacheCreation>§iter_type: Option<String>Iteration type; typically “message”.
Trait Implementations§
Source§impl Clone for UsageIteration
impl Clone for UsageIteration
Source§fn clone(&self) -> UsageIteration
fn clone(&self) -> UsageIteration
Returns a duplicate of the value. Read more
1.0.0 · 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 UsageIteration
impl Debug for UsageIteration
Source§impl<'de> Deserialize<'de> for UsageIteration
impl<'de> Deserialize<'de> for UsageIteration
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
Auto Trait Implementations§
impl Freeze for UsageIteration
impl RefUnwindSafe for UsageIteration
impl Send for UsageIteration
impl Sync for UsageIteration
impl Unpin for UsageIteration
impl UnsafeUnpin for UsageIteration
impl UnwindSafe for UsageIteration
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