pub struct ModelSpend {
pub model: String,
pub requests: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub reasoning_tokens: u64,
pub cost_usd: f64,
pub pricing_estimated: bool,
}Expand description
One model’s measured, priced spend for /status and the dashboard.
Fields§
§model: String§requests: u64§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§reasoning_tokens: u64§cost_usd: f64§pricing_estimated: boolTrue when pricing came from a heuristic/fallback match, not an exact one.
Trait Implementations§
Source§impl Clone for ModelSpend
impl Clone for ModelSpend
Source§fn clone(&self) -> ModelSpend
fn clone(&self) -> ModelSpend
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 ModelSpend
impl Debug for ModelSpend
Source§impl PartialEq for ModelSpend
impl PartialEq for ModelSpend
Source§fn eq(&self, other: &ModelSpend) -> bool
fn eq(&self, other: &ModelSpend) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelSpend
impl Serialize for ModelSpend
impl StructuralPartialEq for ModelSpend
Auto Trait Implementations§
impl Freeze for ModelSpend
impl RefUnwindSafe for ModelSpend
impl Send for ModelSpend
impl Sync for ModelSpend
impl Unpin for ModelSpend
impl UnsafeUnpin for ModelSpend
impl UnwindSafe for ModelSpend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more