Struct InputCacheUsage
pub struct InputCacheUsage {
pub cache_creation_1h_input_tokens: Option<u64>,
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§
§cache_creation_1h_input_tokens: Option<u64>The provider reports these cache-write tokens at the one-hour rate.
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§
§impl Clone for InputCacheUsage
impl Clone for InputCacheUsage
§fn clone(&self) -> InputCacheUsage
fn clone(&self) -> InputCacheUsage
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 more§impl Debug for InputCacheUsage
impl Debug for InputCacheUsage
§impl Default for InputCacheUsage
impl Default for InputCacheUsage
§fn default() -> InputCacheUsage
fn default() -> InputCacheUsage
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for InputCacheUsage
impl<'de> Deserialize<'de> for InputCacheUsage
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputCacheUsage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InputCacheUsage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for InputCacheUsage
impl PartialEq for InputCacheUsage
§impl Serialize for InputCacheUsage
impl Serialize for InputCacheUsage
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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