pub enum UsageWindow {
AllTime,
CurrentHour,
CurrentDay,
CurrentMonth,
Range {
start: DateTime<Utc>,
end: DateTime<Utc>,
},
}Expand description
Time selection for a current-session usage breakdown.
Variants§
AllTime
Every request recorded by the live client.
CurrentHour
Current UTC clock hour.
CurrentDay
Current UTC calendar day.
CurrentMonth
Current UTC calendar month.
Range
Explicit half-open UTC range [start, end).
Trait Implementations§
Source§impl Clone for UsageWindow
impl Clone for UsageWindow
Source§fn clone(&self) -> UsageWindow
fn clone(&self) -> UsageWindow
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 UsageWindow
impl Debug for UsageWindow
impl Eq for UsageWindow
Source§impl PartialEq for UsageWindow
impl PartialEq for UsageWindow
impl StructuralPartialEq for UsageWindow
Auto Trait Implementations§
impl Freeze for UsageWindow
impl RefUnwindSafe for UsageWindow
impl Send for UsageWindow
impl Sync for UsageWindow
impl Unpin for UsageWindow
impl UnsafeUnpin for UsageWindow
impl UnwindSafe for UsageWindow
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