pub struct InputTokenDetails {
pub audio_tokens: Option<u32>,
pub cached_tokens: Option<u32>,
pub cached_token_details: Option<CachedTokenDetails>,
pub image_tokens: Option<u32>,
pub text_tokens: Option<u32>,
}Available on crate feature
realtime only.Fields§
§audio_tokens: Option<u32>The number of audio tokens used as input for the Response.
cached_tokens: Option<u32>The number of cached tokens used as input for the Response.
cached_token_details: Option<CachedTokenDetails>Details about the cached tokens used as input for the Response.
image_tokens: Option<u32>The number of image tokens used as input for the Response.
text_tokens: Option<u32>The number of text tokens used as input for the Response.
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 · 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
Auto Trait Implementations§
impl Freeze for InputTokenDetails
impl RefUnwindSafe for InputTokenDetails
impl Send for InputTokenDetails
impl Sync for InputTokenDetails
impl Unpin 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