pub struct InputCacheUsage {
pub cached_input_tokens: Option<u64>,
pub cache_creation_input_tokens: Option<u64>,
}Expand description
Optional cache-token detail kept out of the common, cache-free usage allocation.
Fields§
§cached_input_tokens: Option<u64>Input tokens read from a provider cache.
cache_creation_input_tokens: Option<u64>Input tokens written into a provider cache.
Trait Implementations§
Source§impl Clone for InputCacheUsage
impl Clone for InputCacheUsage
Source§fn clone(&self) -> InputCacheUsage
fn clone(&self) -> InputCacheUsage
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 InputCacheUsage
impl Debug for InputCacheUsage
Source§impl Default for InputCacheUsage
impl Default for InputCacheUsage
Source§fn default() -> InputCacheUsage
fn default() -> InputCacheUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputCacheUsage
impl<'de> Deserialize<'de> for InputCacheUsage
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 InputCacheUsage
impl PartialEq for InputCacheUsage
Source§impl Serialize for InputCacheUsage
impl Serialize for InputCacheUsage
impl StructuralPartialEq for InputCacheUsage
Auto Trait Implementations§
impl Freeze for InputCacheUsage
impl RefUnwindSafe for InputCacheUsage
impl Send for InputCacheUsage
impl Sync for InputCacheUsage
impl Unpin for InputCacheUsage
impl UnsafeUnpin for InputCacheUsage
impl UnwindSafe for InputCacheUsage
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