pub struct RealtimeResponseUsage {
pub input_token_details: Option<InputTokenDetails>,
pub input_tokens: u32,
pub output_token_details: Option<OutputTokenDetails>,
pub output_tokens: u32,
pub total_tokens: u32,
}Available on crate feature
realtime only.Fields§
§input_token_details: Option<InputTokenDetails>Details about the input tokens used in the Response. Cached tokens are tokens from previous turns in the conversation that are included as context for the current response. Cached tokens here are counted as a subset of input tokens, meaning input tokens will include cached and uncached tokens.
input_tokens: u32The number of input tokens used in the Response, including text and audio tokens.
output_token_details: Option<OutputTokenDetails>§output_tokens: u32The number of output tokens sent in the Response, including text and audio tokens.
total_tokens: u32The total number of tokens in the Response including input and output text and audio tokens.
Trait Implementations§
Source§impl Clone for RealtimeResponseUsage
impl Clone for RealtimeResponseUsage
Source§fn clone(&self) -> RealtimeResponseUsage
fn clone(&self) -> RealtimeResponseUsage
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 RealtimeResponseUsage
impl Debug for RealtimeResponseUsage
Source§impl<'de> Deserialize<'de> for RealtimeResponseUsage
impl<'de> Deserialize<'de> for RealtimeResponseUsage
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 RealtimeResponseUsage
impl RefUnwindSafe for RealtimeResponseUsage
impl Send for RealtimeResponseUsage
impl Sync for RealtimeResponseUsage
impl Unpin for RealtimeResponseUsage
impl UnwindSafe for RealtimeResponseUsage
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