pub struct CompletionUsage_PromptTokensDetails {
pub audio_tokens: Option<i64>,
pub cached_tokens: Option<i64>,
}
Expand description
Breakdown of tokens used in the prompt.
Fields§
§audio_tokens: Option<i64>
Audio input tokens present in the prompt.
cached_tokens: Option<i64>
Cached tokens present in the prompt.
Trait Implementations§
Source§impl Clone for CompletionUsage_PromptTokensDetails
impl Clone for CompletionUsage_PromptTokensDetails
Source§fn clone(&self) -> CompletionUsage_PromptTokensDetails
fn clone(&self) -> CompletionUsage_PromptTokensDetails
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 CompletionUsage_PromptTokensDetails
impl Default for CompletionUsage_PromptTokensDetails
Source§fn default() -> CompletionUsage_PromptTokensDetails
fn default() -> CompletionUsage_PromptTokensDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompletionUsage_PromptTokensDetails
impl RefUnwindSafe for CompletionUsage_PromptTokensDetails
impl Send for CompletionUsage_PromptTokensDetails
impl Sync for CompletionUsage_PromptTokensDetails
impl Unpin for CompletionUsage_PromptTokensDetails
impl UnwindSafe for CompletionUsage_PromptTokensDetails
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