pub struct EndpointUsage {
pub calls: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost: f64,
}Expand description
Accumulated usage for a single endpoint.
Fields§
§calls: u64Number of calls made.
input_tokens: u64Total input tokens consumed.
output_tokens: u64Total output tokens consumed.
cost: f64Accumulated cost in USD.
Trait Implementations§
Source§impl Clone for EndpointUsage
impl Clone for EndpointUsage
Source§fn clone(&self) -> EndpointUsage
fn clone(&self) -> EndpointUsage
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 EndpointUsage
impl Debug for EndpointUsage
Source§impl Default for EndpointUsage
impl Default for EndpointUsage
Source§fn default() -> EndpointUsage
fn default() -> EndpointUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EndpointUsage
impl RefUnwindSafe for EndpointUsage
impl Send for EndpointUsage
impl Sync for EndpointUsage
impl Unpin for EndpointUsage
impl UnsafeUnpin for EndpointUsage
impl UnwindSafe for EndpointUsage
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