pub struct UsageBreakdown {
pub as_of: Option<String>,
pub window_started_at: Option<String>,
pub rows: Vec<BreakdownRow>,
}Expand description
A window’s consumption split by category, as the upstream reports it.
First observed on Anthropic’s weekly window, which splits consumption across
claude_code, chat, cowork and other. A consumer that sees only some
of an account’s traffic uses the split to tell which share of a movement in
used_percent it can account for.
Fields§
§as_of: Option<String>When the upstream computed the split, RFC 3339. Omitted when unstated.
window_started_at: Option<String>When the window this split describes began, RFC 3339, as the upstream states it. Lets a consumer tell which window a split belongs to across a reset. Omitted when unstated.
rows: Vec<BreakdownRow>One row per category, in the upstream’s order.
Trait Implementations§
Source§impl Clone for UsageBreakdown
impl Clone for UsageBreakdown
Source§impl Debug for UsageBreakdown
impl Debug for UsageBreakdown
Source§impl<'de> Deserialize<'de> for UsageBreakdown
impl<'de> Deserialize<'de> for UsageBreakdown
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 UsageBreakdown
impl PartialEq for UsageBreakdown
Source§impl Serialize for UsageBreakdown
impl Serialize for UsageBreakdown
impl StructuralPartialEq for UsageBreakdown
Auto Trait Implementations§
impl Freeze for UsageBreakdown
impl RefUnwindSafe for UsageBreakdown
impl Send for UsageBreakdown
impl Sync for UsageBreakdown
impl Unpin for UsageBreakdown
impl UnsafeUnpin for UsageBreakdown
impl UnwindSafe for UsageBreakdown
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