pub struct TotalView {
pub confidence: Option<String>,
pub cost_cents: Option<i32>,
pub provider: Option<String>,
pub requests: Option<i32>,
pub scope: Option<String>,
pub source: Option<String>,
pub tokens: Option<i32>,
pub used_pct: Option<f64>,
pub window: Option<String>,
pub windows: Option<i32>,
}Fields§
§confidence: Option<String>Confidence says how real the row’s numbers are.
cost_cents: Option<i32>CostCents is the period’s spend in cents, in the row’s own ledger.
provider: Option<String>Provider is the provider the row totals.
requests: Option<i32>Requests is the period’s request count.
scope: Option<String>Scope is whose usage the row measures: user or org.
source: Option<String>Source is whose meter the row came from: account or hanzo.
tokens: Option<i32>Tokens is the period’s total token count.
used_pct: Option<f64>UsedPct is the plan consumption percentage, on the account side.
window: Option<String>Window is the window class the row totals, on the account side.
windows: Option<i32>Windows is how many window instances the row folds.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TotalView
impl<'de> Deserialize<'de> for TotalView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TotalView
Auto Trait Implementations§
impl Freeze for TotalView
impl RefUnwindSafe for TotalView
impl Send for TotalView
impl Sync for TotalView
impl Unpin for TotalView
impl UnsafeUnpin for TotalView
impl UnwindSafe for TotalView
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