pub struct CompletionUsageDetail {
pub reasoning_tokens: i32,
pub audio_tokens: i32,
pub accepted_prediction_tokens: i32,
pub rejected_prediction_tokens: i32,
}Expand description
Details of completion usage.
Fields§
§reasoning_tokens: i32Tokens generated by the model for reasoning.
audio_tokens: i32Audio input tokens generated by the model.
accepted_prediction_tokens: i32The number of tokens in the prediction that appeared in the completion.
rejected_prediction_tokens: i32The number of tokens in the prediction that did not appear in the completion.
Trait Implementations§
Source§impl Clone for CompletionUsageDetail
impl Clone for CompletionUsageDetail
Source§fn clone(&self) -> CompletionUsageDetail
fn clone(&self) -> CompletionUsageDetail
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 CompletionUsageDetail
impl Debug for CompletionUsageDetail
Source§impl Default for CompletionUsageDetail
impl Default for CompletionUsageDetail
Source§fn default() -> CompletionUsageDetail
fn default() -> CompletionUsageDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompletionUsageDetail
impl<'de> Deserialize<'de> for CompletionUsageDetail
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 CompletionUsageDetail
impl PartialEq for CompletionUsageDetail
Source§impl Serialize for CompletionUsageDetail
impl Serialize for CompletionUsageDetail
impl StructuralPartialEq for CompletionUsageDetail
Auto Trait Implementations§
impl Freeze for CompletionUsageDetail
impl RefUnwindSafe for CompletionUsageDetail
impl Send for CompletionUsageDetail
impl Sync for CompletionUsageDetail
impl Unpin for CompletionUsageDetail
impl UnwindSafe for CompletionUsageDetail
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