pub struct UsageWindowView {Show 19 fields
pub account: Option<String>,
pub cached_input_tokens: Option<i32>,
pub confidence: Option<String>,
pub cost_cents: Option<i32>,
pub cost_limit_cents: Option<i32>,
pub currency: Option<String>,
pub input_tokens: Option<i32>,
pub lane: Option<String>,
pub machine: Option<String>,
pub output_tokens: Option<i32>,
pub plan: Option<String>,
pub requests: Option<i32>,
pub resets_at: Option<String>,
pub synthetic: Option<bool>,
pub total_tokens: Option<i32>,
pub used_pct: Option<f64>,
pub window: Option<String>,
pub window_minutes: Option<i32>,
pub window_start: Option<String>,
}Fields§
§account: Option<String>Account is the linked provider account the window belongs to.
cached_input_tokens: Option<i32>CachedInputTokens is the prompt tokens served from the provider’s cache; omitted when unknown.
confidence: Option<String>Confidence says how much the counters beside it mean — a meter that reported only a percentage leaves them at zero, and this is how a reader tells that from a true zero.
cost_cents: Option<i32>CostCents is what the window cost on the PROVIDER’s own plan, in US cents. It is not a Hanzo charge.
cost_limit_cents: Option<i32>CostLimitCents is the plan’s spend ceiling for the window, in US cents.
currency: Option<String>Currency is the provider’s currency when it is not US cents.
input_tokens: Option<i32>InputTokens is prompt tokens consumed in the window; omitted when unknown.
lane: Option<String>Lane is the meter lane this instance belongs to, e.g. a provider’s own rolling-window meter.
machine: Option<String>Machine is the host whose meter reported the window.
output_tokens: Option<i32>OutputTokens is completion tokens produced in the window; omitted when unknown.
plan: Option<String>Plan is the subscription plan the account is on, as the provider names it.
requests: Option<i32>Requests is how many requests were made in the window; omitted when the meter did not report it.
resets_at: Option<String>ResetsAt is when this window rolls over, RFC3339 UTC; omitted when unknown.
synthetic: Option<bool>Synthetic marks an instance the meter inferred rather than read.
total_tokens: Option<i32>TotalTokens is the window’s total tokens; omitted when unknown.
used_pct: Option<f64>UsedPct is how much of the window’s allowance is consumed, 0–100.
window: Option<String>Window is the window class: 6h, day, week or month.
window_minutes: Option<i32>WindowMinutes is the window’s real length in minutes when the meter reported one; omitted when it did not.
window_start: Option<String>WindowStart is when this window opened, RFC3339 UTC; omitted when unknown.
Implementations§
Source§impl UsageWindowView
impl UsageWindowView
pub fn new() -> UsageWindowView
Trait Implementations§
Source§impl Clone for UsageWindowView
impl Clone for UsageWindowView
Source§fn clone(&self) -> UsageWindowView
fn clone(&self) -> UsageWindowView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more