pub struct FiveHourBlock {
pub start: Timestamp,
pub actual_last_activity: Timestamp,
pub token_counts: TokenCounts,
pub models: Vec<String>,
pub usage_limit_reset: Option<Timestamp>,
}Expand description
Active 5-hour billing block. start is the UTC-floor-to-hour of
the block’s first entry; actual_last_activity lets the caller
distinguish a block where the user stopped typing 10 seconds ago
from one where they stopped 4 hours ago. The block’s end time is
a derivation from start — see Self::end.
Fields§
§start: Timestamp§actual_last_activity: Timestamp§token_counts: TokenCounts§models: Vec<String>§usage_limit_reset: Option<Timestamp>usageLimitResetTime from the most recent entry that carried
one. Verified absent across the surveyed Claude Code corpus
(lsm-ghpj, 2026-05-16); the field is deserialized defensively
but segments do not consume it — rate_limit_5h_reset uses
block.end() per ADR-0013.
Implementations§
Trait Implementations§
Source§impl Clone for FiveHourBlock
impl Clone for FiveHourBlock
Source§fn clone(&self) -> FiveHourBlock
fn clone(&self) -> FiveHourBlock
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 moreAuto Trait Implementations§
impl Freeze for FiveHourBlock
impl RefUnwindSafe for FiveHourBlock
impl Send for FiveHourBlock
impl Sync for FiveHourBlock
impl Unpin for FiveHourBlock
impl UnsafeUnpin for FiveHourBlock
impl UnwindSafe for FiveHourBlock
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