pub struct CacheShareRow {Show 17 fields
pub provider: String,
pub model: String,
pub requests: u64,
pub input_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub output_tokens: u64,
pub prompt_tokens: u64,
pub cache_read_share: Option<f64>,
pub cost_usd: f64,
pub uncached_cost_usd: f64,
pub prices: TokenPrices,
pub status: ShareStatus,
pub alarm_active: bool,
pub alarms_fired: u64,
pub last_alarm_at: Option<u64>,
pub open_model: OpenModelVerdict,
}Expand description
One provider+model over the window.
Fields§
§provider: String§model: String§requests: u64§input_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§output_tokens: u64§prompt_tokens: u64Cache reads / prompt tokens; None without prompt tokens.
cost_usd: f64§uncached_cost_usd: f64Cost of the same tokens with every prompt token at the input rate.
prices: TokenPricesPurchase price per token class of the latest turn (USD per 1M).
status: ShareStatus§alarm_active: bool§alarms_fired: u64§last_alarm_at: Option<u64>§open_model: OpenModelVerdictTrait Implementations§
Auto Trait Implementations§
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,
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