#[non_exhaustive]pub struct Limit {
pub kind: Option<String>,
pub group: Option<String>,
pub utilization: Option<f64>,
pub resets_at: Option<String>,
pub is_active: Option<bool>,
pub scope: Option<LimitScope>,
pub extra: Extra,
}Expand description
One row of Usage::limits.
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.kind: Option<String>The meter’s kind (session, weekly_all, weekly_scoped, …).
group: Option<String>The row’s group (session, weekly, …).
utilization: Option<f64>Percent used.
resets_at: Option<String>When it resets, RFC 3339.
is_active: Option<bool>Whether this meter is the one currently limiting.
scope: Option<LimitScope>What the meter covers, for scoped meters.
extra: ExtraAnything else.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Limit
impl<'de> Deserialize<'de> for Limit
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 StructuralPartialEq for Limit
Auto Trait Implementations§
impl Forget for Limit
impl Freeze for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnsafeUnpin for Limit
impl UnwindSafe for Limit
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