pub struct QuotaUsage {
pub current: i64,
pub key: QuotaKey,
pub limit: EffectiveLimit,
pub period: QuotaPeriod,
pub period_end: Option<String>,
pub period_label: String,
pub period_start: Option<String>,
}Expand description
Single (key, period) entry in a usage report.
JSON schema
{
"description": "Single (key, period) entry in a usage report.",
"type": "object",
"required": [
"current",
"key",
"limit",
"period",
"period_label"
],
"properties": {
"current": {
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"key": {
"$ref": "#/components/schemas/QuotaKey"
},
"limit": {
"$ref": "#/components/schemas/EffectiveLimit"
},
"period": {
"$ref": "#/components/schemas/QuotaPeriod"
},
"period_end": {
"description": "Window end (RFC3339). `null` for `Lifetime`.",
"type": [
"string",
"null"
]
},
"period_label": {
"description": "Window label (e.g. `lifetime`, `month:2026-04`). Stable across reports.",
"type": "string"
},
"period_start": {
"description": "Window start (RFC3339). `null` for `Lifetime`.",
"type": [
"string",
"null"
]
}
}
}Fields§
§current: i64§key: QuotaKey§limit: EffectiveLimit§period: QuotaPeriod§period_end: Option<String>Window end (RFC3339). null for Lifetime.
period_label: StringWindow label (e.g. lifetime, month:2026-04). Stable across reports.
period_start: Option<String>Window start (RFC3339). null for Lifetime.
Trait Implementations§
Source§impl Clone for QuotaUsage
impl Clone for QuotaUsage
Source§fn clone(&self) -> QuotaUsage
fn clone(&self) -> QuotaUsage
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 QuotaUsage
impl Debug for QuotaUsage
Source§impl<'de> Deserialize<'de> for QuotaUsage
impl<'de> Deserialize<'de> for QuotaUsage
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 QuotaUsage
impl RefUnwindSafe for QuotaUsage
impl Send for QuotaUsage
impl Sync for QuotaUsage
impl Unpin for QuotaUsage
impl UnsafeUnpin for QuotaUsage
impl UnwindSafe for QuotaUsage
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