pub struct DroidSnapshot {
pub session: Option<UsageWindow>,
pub weekly: Option<UsageWindow>,
pub monthly: Option<UsageWindow>,
pub core_session: Option<UsageWindow>,
pub core_weekly: Option<UsageWindow>,
pub core_monthly: Option<UsageWindow>,
pub extra_balance_cents: Option<i64>,
}Expand description
Factory droid CLI subscription quota. The limits endpoint reports a
usedPercent per window in two buckets — Standard and Droid Core — each
with a 5-hour, a weekly and a monthly window. A window the account has not
started still reports a percentage with windowEnd: null, so it is present
with no reset; an absent window stays absent.
Fields§
§session: Option<UsageWindow>Standard quota, 5-hour window.
weekly: Option<UsageWindow>Standard quota, weekly (7d) window.
monthly: Option<UsageWindow>Standard quota, monthly (30d) window.
core_session: Option<UsageWindow>Droid Core quota, 5-hour window.
core_weekly: Option<UsageWindow>Droid Core quota, weekly window.
core_monthly: Option<UsageWindow>Droid Core quota, monthly window.
extra_balance_cents: Option<i64>extraUsageBalanceCents, verbatim; renderers convert cents to dollars.
Trait Implementations§
Source§impl Clone for DroidSnapshot
impl Clone for DroidSnapshot
Source§impl Debug for DroidSnapshot
impl Debug for DroidSnapshot
impl Eq for DroidSnapshot
Source§impl PartialEq for DroidSnapshot
impl PartialEq for DroidSnapshot
impl StructuralPartialEq for DroidSnapshot
Auto Trait Implementations§
impl Freeze for DroidSnapshot
impl RefUnwindSafe for DroidSnapshot
impl Send for DroidSnapshot
impl Sync for DroidSnapshot
impl Unpin for DroidSnapshot
impl UnsafeUnpin for DroidSnapshot
impl UnwindSafe for DroidSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more