pub struct BatchTokenDetails { /* private fields */ }
Implementations§
Source§impl BatchTokenDetails
impl BatchTokenDetails
pub fn cached_tokens(&self) -> Option<u32>
pub fn audio_tokens(&self) -> Option<u32>
pub fn reasoning_tokens(&self) -> Option<u32>
pub fn accepted_prediction_tokens(&self) -> Option<u32>
pub fn rejected_prediction_tokens(&self) -> Option<u32>
Sourcepub fn total_tokens(&self) -> u32
pub fn total_tokens(&self) -> u32
Calculates the total tokens by summing up all available token counts.
Trait Implementations§
Source§impl Debug for BatchTokenDetails
impl Debug for BatchTokenDetails
Source§impl<'de> Deserialize<'de> for BatchTokenDetails
impl<'de> Deserialize<'de> for BatchTokenDetails
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 BatchTokenDetails
impl RefUnwindSafe for BatchTokenDetails
impl Send for BatchTokenDetails
impl Sync for BatchTokenDetails
impl Unpin for BatchTokenDetails
impl UnwindSafe for BatchTokenDetails
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