pub struct InputTokenDetails {
pub audio: Option<i64>,
pub cache_creation: Option<i64>,
pub cache_read: Option<i64>,
}Expand description
Breakdown of input token counts.
Does not need to sum to full input token count. Does not need to have all keys.
Fields§
§audio: Option<i64>Audio input tokens.
cache_creation: Option<i64>Input tokens that were cached and there was a cache miss.
cache_read: Option<i64>Input tokens that were cached and there was a cache hit.
Trait Implementations§
Source§impl Clone for InputTokenDetails
impl Clone for InputTokenDetails
Source§fn clone(&self) -> InputTokenDetails
fn clone(&self) -> InputTokenDetails
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 InputTokenDetails
impl Debug for InputTokenDetails
Source§impl Default for InputTokenDetails
impl Default for InputTokenDetails
Source§fn default() -> InputTokenDetails
fn default() -> InputTokenDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputTokenDetails
impl<'de> Deserialize<'de> for InputTokenDetails
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
Source§impl PartialEq for InputTokenDetails
impl PartialEq for InputTokenDetails
Source§impl Serialize for InputTokenDetails
impl Serialize for InputTokenDetails
impl StructuralPartialEq for InputTokenDetails
Auto Trait Implementations§
impl Freeze for InputTokenDetails
impl RefUnwindSafe for InputTokenDetails
impl Send for InputTokenDetails
impl Sync for InputTokenDetails
impl Unpin for InputTokenDetails
impl UnwindSafe for InputTokenDetails
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