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§impl Debug for EndpointUsage
impl Debug for EndpointUsage
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