pub struct InteractionsUsage {
pub total_input_tokens: Option<u32>,
pub input_tokens_by_modality: Option<Vec<ModalityTokens>>,
pub total_cached_tokens: Option<u32>,
pub cached_tokens_by_modality: Option<Vec<ModalityTokens>>,
pub total_output_tokens: Option<u32>,
pub output_tokens_by_modality: Option<Vec<ModalityTokens>>,
pub total_tool_use_tokens: Option<u32>,
pub tool_use_tokens_by_modality: Option<Vec<ModalityTokens>>,
pub total_thought_tokens: Option<u32>,
pub total_tokens: Option<u32>,
}Fields§
§total_input_tokens: Option<u32>§input_tokens_by_modality: Option<Vec<ModalityTokens>>§total_cached_tokens: Option<u32>§cached_tokens_by_modality: Option<Vec<ModalityTokens>>§total_output_tokens: Option<u32>§output_tokens_by_modality: Option<Vec<ModalityTokens>>§total_tool_use_tokens: Option<u32>§tool_use_tokens_by_modality: Option<Vec<ModalityTokens>>§total_thought_tokens: Option<u32>§total_tokens: Option<u32>Trait Implementations§
Source§impl Clone for InteractionsUsage
impl Clone for InteractionsUsage
Source§fn clone(&self) -> InteractionsUsage
fn clone(&self) -> InteractionsUsage
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 InteractionsUsage
impl Debug for InteractionsUsage
Source§impl<'de> Deserialize<'de> for InteractionsUsage
impl<'de> Deserialize<'de> for InteractionsUsage
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 InteractionsUsage
impl RefUnwindSafe for InteractionsUsage
impl Send for InteractionsUsage
impl Sync for InteractionsUsage
impl Unpin for InteractionsUsage
impl UnwindSafe for InteractionsUsage
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