pub struct InputTokens {
pub total: Option<u64>,
pub no_cache: Option<u64>,
pub cache_read: Option<u64>,
pub cache_write: Option<u64>,
}Expand description
Input token counts.
Fields§
§total: Option<u64>Total input tokens, including cached tokens.
no_cache: Option<u64>Input tokens that were neither read from nor written to a cache.
cache_read: Option<u64>Input tokens read from a prompt cache.
cache_write: Option<u64>Input tokens written to a prompt cache.
Trait Implementations§
Source§impl Clone for InputTokens
impl Clone for InputTokens
Source§fn clone(&self) -> InputTokens
fn clone(&self) -> InputTokens
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 moreimpl Copy for InputTokens
Source§impl Debug for InputTokens
impl Debug for InputTokens
Source§impl Default for InputTokens
impl Default for InputTokens
Source§fn default() -> InputTokens
fn default() -> InputTokens
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputTokens
impl<'de> Deserialize<'de> for InputTokens
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
impl Eq for InputTokens
Source§impl PartialEq for InputTokens
impl PartialEq for InputTokens
Source§impl Serialize for InputTokens
impl Serialize for InputTokens
impl StructuralPartialEq for InputTokens
Auto Trait Implementations§
impl Freeze for InputTokens
impl RefUnwindSafe for InputTokens
impl Send for InputTokens
impl Sync for InputTokens
impl Unpin for InputTokens
impl UnsafeUnpin for InputTokens
impl UnwindSafe for InputTokens
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.