#[non_exhaustive]pub struct QuotaDetail {
pub limit_kind: LimitKind,
pub resets_at_ms: i64,
}Expand description
Typed quota-exhaustion detail: the limit kind plus the provider’s reset instant.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.limit_kind: LimitKindWhich quota was exhausted (open enum; unknown values fall back).
resets_at_ms: i64Epoch milliseconds at which the provider says usage resets.
Trait Implementations§
Source§impl Clone for QuotaDetail
impl Clone for QuotaDetail
Source§impl Debug for QuotaDetail
impl Debug for QuotaDetail
Source§impl<'de> Deserialize<'de> for QuotaDetail
impl<'de> Deserialize<'de> for QuotaDetail
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
impl Eq for QuotaDetail
Source§impl PartialEq for QuotaDetail
impl PartialEq for QuotaDetail
Source§impl Serialize for QuotaDetail
impl Serialize for QuotaDetail
impl StructuralPartialEq for QuotaDetail
Auto Trait Implementations§
impl Freeze for QuotaDetail
impl RefUnwindSafe for QuotaDetail
impl Send for QuotaDetail
impl Sync for QuotaDetail
impl Unpin for QuotaDetail
impl UnsafeUnpin for QuotaDetail
impl UnwindSafe for QuotaDetail
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