pub struct UsageSummary {
pub accounts: Option<Box<Accounts>>,
pub end: Option<String>,
pub interval: Option<String>,
pub llm: Option<Box<Llm>>,
pub range: Option<String>,
pub scope: Option<Box<UsageScope>>,
pub sources: Option<Box<Sources>>,
pub spend: Option<Box<Spend>>,
pub start: Option<String>,
}Fields§
§accounts: Option<Box<Accounts>>Accounts is the caller’s own linked provider accounts beside the org’s Hanzo-routed usage, labelled row by row and never summed together.
end: Option<String>End is the window’s exclusive end, RFC3339 UTC.
interval: Option<String>Interval is the bucket width the spend series is gap-filled at.
llm: Option<Box<Llm>>LLM is the org’s Hanzo-routed inference totals from the warehouse.
range: Option<String>Range is the window label that was served.
scope: Option<Box<UsageScope>>Scope is the tenant and subject the roll-up was answered for.
sources: Option<Box<Sources>>Sources says which upstreams actually answered, so a zero can be read as "no data yet" rather than as a measurement.
spend: Option<Box<Spend>>Spend is the categorized cost roll-up from the billing ledger.
start: Option<String>Start is the window’s inclusive start, RFC3339 UTC.
Implementations§
Source§impl UsageSummary
impl UsageSummary
pub fn new() -> UsageSummary
Trait Implementations§
Source§impl Clone for UsageSummary
impl Clone for UsageSummary
Source§fn clone(&self) -> UsageSummary
fn clone(&self) -> UsageSummary
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 UsageSummary
impl Debug for UsageSummary
Source§impl Default for UsageSummary
impl Default for UsageSummary
Source§fn default() -> UsageSummary
fn default() -> UsageSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageSummary
impl<'de> Deserialize<'de> for UsageSummary
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
Source§impl PartialEq for UsageSummary
impl PartialEq for UsageSummary
Source§impl Serialize for UsageSummary
impl Serialize for UsageSummary
impl StructuralPartialEq for UsageSummary
Auto Trait Implementations§
impl Freeze for UsageSummary
impl RefUnwindSafe for UsageSummary
impl Send for UsageSummary
impl Sync for UsageSummary
impl Unpin for UsageSummary
impl UnsafeUnpin for UsageSummary
impl UnwindSafe for UsageSummary
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