pub struct Quota {
pub status: u16,
pub resource: String,
pub limit: Option<u64>,
pub used: Option<u64>,
pub reset_at: Option<String>,
pub retry_after: Option<u64>,
pub cooldown_days: Option<u32>,
pub next_step: Option<NextStep>,
}Expand description
A used-up quota as far as it is shown and acted on (API §8.1).
Fields§
§status: u16HTTP status: 409 counted, 429 monthly.
resource: String[a-z_] token (transfer_bytes, bus_messages,
registered_instances, private_vaults, or a newer one).
limit: Option<u64>§used: Option<u64>§reset_at: Option<String>When it frees, second precision Z (None: nothing frees by itself).
retry_after: Option<u64>retry_after_s (or the Retry-After header).
cooldown_days: Option<u32>registered_instances in Personal: the slot cool-down.
next_step: Option<NextStep>What helps, when the service says so.
Implementations§
Trait Implementations§
impl Eq for Quota
impl StructuralPartialEq for Quota
Auto Trait Implementations§
impl Forget for Quota
impl Freeze for Quota
impl Move for Quota
impl RefUnwindSafe for Quota
impl Send for Quotawhere
RawVecInner: Send,
impl Sync for Quotawhere
RawVecInner: Sync,
impl Unpin for Quota
impl UnsafeUnpin for Quota
impl UnwindSafe for Quotawhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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