pub struct UsageReportLimit {
pub kind: String,
pub group: String,
pub percent: f64,
pub resets_at: Option<String>,
pub scope: Option<UsageReportScope>,
pub severity: Option<String>,
pub is_active: Option<bool>,
pub extra: Map<String, Value>,
}Expand description
One server usage row in UsageReportRateLimits::limits.
Fields§
§kind: StringThe server’s meter kind, e.g. session, weekly_all or
weekly_scoped. Classify a row on this, never on a label.
group: StringThe server’s row group, e.g. session or weekly; rows render
grouped under it, in the server’s order.
percent: f64Share of the window used, 0–100.
resets_at: Option<String>ISO 8601 timestamp when the window resets.
scope: Option<UsageReportScope>What a scoped row is for, a model or a surface, with the server’s display label.
severity: Option<String>The server’s reading of the row for a meter’s colour, e.g. normal,
warning or critical; a client falls back to its own thresholds
without it.
is_active: Option<bool>The server’s headline pick: the row a single-value indicator shows.
extra: Map<String, Value>Trait Implementations§
Source§impl Clone for UsageReportLimit
impl Clone for UsageReportLimit
Source§fn clone(&self) -> UsageReportLimit
fn clone(&self) -> UsageReportLimit
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 UsageReportLimit
impl Debug for UsageReportLimit
Source§impl<'de> Deserialize<'de> for UsageReportLimit
impl<'de> Deserialize<'de> for UsageReportLimit
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
Auto Trait Implementations§
impl Freeze for UsageReportLimit
impl RefUnwindSafe for UsageReportLimit
impl Send for UsageReportLimit
impl Sync for UsageReportLimit
impl Unpin for UsageReportLimit
impl UnsafeUnpin for UsageReportLimit
impl UnwindSafe for UsageReportLimit
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