pub struct OutputTokenUsage {
pub total: Option<u64>,
pub text: Option<u64>,
pub reasoning: Option<u64>,
}Expand description
Output-side token counters.
Fields§
§total: Option<u64>Total output tokens.
text: Option<u64>Output text tokens.
reasoning: Option<u64>Output reasoning tokens.
Trait Implementations§
Source§impl Clone for OutputTokenUsage
impl Clone for OutputTokenUsage
Source§fn clone(&self) -> OutputTokenUsage
fn clone(&self) -> OutputTokenUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputTokenUsage
impl Debug for OutputTokenUsage
Source§impl Default for OutputTokenUsage
impl Default for OutputTokenUsage
Source§fn default() -> OutputTokenUsage
fn default() -> OutputTokenUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutputTokenUsage
impl<'de> Deserialize<'de> for OutputTokenUsage
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 OutputTokenUsage
impl PartialEq for OutputTokenUsage
Source§fn eq(&self, other: &OutputTokenUsage) -> bool
fn eq(&self, other: &OutputTokenUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OutputTokenUsage
impl Serialize for OutputTokenUsage
impl Copy for OutputTokenUsage
impl Eq for OutputTokenUsage
impl StructuralPartialEq for OutputTokenUsage
Auto Trait Implementations§
impl Freeze for OutputTokenUsage
impl RefUnwindSafe for OutputTokenUsage
impl Send for OutputTokenUsage
impl Sync for OutputTokenUsage
impl Unpin for OutputTokenUsage
impl UnsafeUnpin for OutputTokenUsage
impl UnwindSafe for OutputTokenUsage
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