pub struct BatchUsage {
pub total_input_tokens: i64,
pub total_output_tokens: i64,
pub total_requests: i64,
pub successful_requests: i64,
pub failed_requests: i64,
}Expand description
Aggregate usage for batch responses.
Fields§
§total_input_tokens: i64§total_output_tokens: i64§total_requests: i64§successful_requests: i64§failed_requests: i64Trait Implementations§
Source§impl Clone for BatchUsage
impl Clone for BatchUsage
Source§fn clone(&self) -> BatchUsage
fn clone(&self) -> BatchUsage
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 BatchUsage
impl Debug for BatchUsage
Source§impl<'de> Deserialize<'de> for BatchUsage
impl<'de> Deserialize<'de> for BatchUsage
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 BatchUsage
impl PartialEq for BatchUsage
Source§impl Serialize for BatchUsage
impl Serialize for BatchUsage
impl StructuralPartialEq for BatchUsage
Auto Trait Implementations§
impl Freeze for BatchUsage
impl RefUnwindSafe for BatchUsage
impl Send for BatchUsage
impl Sync for BatchUsage
impl Unpin for BatchUsage
impl UnwindSafe for BatchUsage
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