pub struct RealtimeResponseUsageOutputTokenDetails {
pub text_tokens: Option<u64>,
pub audio_tokens: Option<u64>,
}
Expand description
Details about the output tokens used in the Response.
Fields§
§text_tokens: Option<u64>
The number of text tokens used in the Response.
audio_tokens: Option<u64>
The number of audio tokens used in the Response.
Implementations§
Source§impl RealtimeResponseUsageOutputTokenDetails
impl RealtimeResponseUsageOutputTokenDetails
Sourcepub fn builder() -> RealtimeResponseUsageOutputTokenDetailsBuilder<((), ())>
pub fn builder() -> RealtimeResponseUsageOutputTokenDetailsBuilder<((), ())>
Create a builder for building RealtimeResponseUsageOutputTokenDetails
.
On the builder, call .text_tokens(...)
(optional), .audio_tokens(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeResponseUsageOutputTokenDetails
.
Trait Implementations§
Source§impl Clone for RealtimeResponseUsageOutputTokenDetails
impl Clone for RealtimeResponseUsageOutputTokenDetails
Source§fn clone(&self) -> RealtimeResponseUsageOutputTokenDetails
fn clone(&self) -> RealtimeResponseUsageOutputTokenDetails
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 Default for RealtimeResponseUsageOutputTokenDetails
impl Default for RealtimeResponseUsageOutputTokenDetails
Source§fn default() -> RealtimeResponseUsageOutputTokenDetails
fn default() -> RealtimeResponseUsageOutputTokenDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeResponseUsageOutputTokenDetails
impl<'de> Deserialize<'de> for RealtimeResponseUsageOutputTokenDetails
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 RealtimeResponseUsageOutputTokenDetails
impl PartialEq for RealtimeResponseUsageOutputTokenDetails
Source§fn eq(&self, other: &RealtimeResponseUsageOutputTokenDetails) -> bool
fn eq(&self, other: &RealtimeResponseUsageOutputTokenDetails) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for RealtimeResponseUsageOutputTokenDetails
impl StructuralPartialEq for RealtimeResponseUsageOutputTokenDetails
Auto Trait Implementations§
impl Freeze for RealtimeResponseUsageOutputTokenDetails
impl RefUnwindSafe for RealtimeResponseUsageOutputTokenDetails
impl Send for RealtimeResponseUsageOutputTokenDetails
impl Sync for RealtimeResponseUsageOutputTokenDetails
impl Unpin for RealtimeResponseUsageOutputTokenDetails
impl UnwindSafe for RealtimeResponseUsageOutputTokenDetails
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