pub struct CachedTokenDetails {
pub audio_tokens: Option<u32>,
pub image_tokens: Option<u32>,
pub text_tokens: Option<u32>,
}Available on crate feature
realtime only.Fields§
§audio_tokens: Option<u32>The number of cached audio tokens used as input for the Response.
image_tokens: Option<u32>The number of cached image tokens used as input for the Response.
text_tokens: Option<u32>The number of cached text tokens used as input for the Response.
Trait Implementations§
Source§impl Clone for CachedTokenDetails
impl Clone for CachedTokenDetails
Source§fn clone(&self) -> CachedTokenDetails
fn clone(&self) -> CachedTokenDetails
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 CachedTokenDetails
impl Debug for CachedTokenDetails
Source§impl<'de> Deserialize<'de> for CachedTokenDetails
impl<'de> Deserialize<'de> for CachedTokenDetails
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
Auto Trait Implementations§
impl Freeze for CachedTokenDetails
impl RefUnwindSafe for CachedTokenDetails
impl Send for CachedTokenDetails
impl Sync for CachedTokenDetails
impl Unpin for CachedTokenDetails
impl UnwindSafe for CachedTokenDetails
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