pub struct InputTokenDetails {
pub cached_tokens: u32,
}Available on crate feature
response-types and (crate features response-types or batch-types) and (crate features response-types or video-types or vectorstore-types or chat-completion-types or assistant-types or batch-types or audio-types or realtime-types or image-types) only.Fields§
§cached_tokens: u32The number of tokens that were retrieved from the cache. More on prompt caching.
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 (const: unstable) · 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<'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§fn eq(&self, other: &InputTokenDetails) -> bool
fn eq(&self, other: &InputTokenDetails) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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