pub struct CacheUsageMetadata {
pub total_token_count: i32,
}
Expand description
Usage metadata specifically for cached content (more predictable than general UsageMetadata).
Fields§
§total_token_count: i32
Total tokens in the cached content.
Trait Implementations§
Source§impl Clone for CacheUsageMetadata
impl Clone for CacheUsageMetadata
Source§fn clone(&self) -> CacheUsageMetadata
fn clone(&self) -> CacheUsageMetadata
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 CacheUsageMetadata
impl Debug for CacheUsageMetadata
Source§impl<'de> Deserialize<'de> for CacheUsageMetadata
impl<'de> Deserialize<'de> for CacheUsageMetadata
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 CacheUsageMetadata
impl PartialEq for CacheUsageMetadata
Source§impl Serialize for CacheUsageMetadata
impl Serialize for CacheUsageMetadata
impl StructuralPartialEq for CacheUsageMetadata
Auto Trait Implementations§
impl Freeze for CacheUsageMetadata
impl RefUnwindSafe for CacheUsageMetadata
impl Send for CacheUsageMetadata
impl Sync for CacheUsageMetadata
impl Unpin for CacheUsageMetadata
impl UnwindSafe for CacheUsageMetadata
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