pub struct UsageReportRateLimits {
pub limits: Option<Vec<UsageReportLimit>>,
pub extra_usage: Option<UsageReportExtraUsage>,
pub extra: Map<String, Value>,
}Expand description
The plan’s usage rows and extra-usage spend in a UsageReport.
Fields§
§limits: Option<Vec<UsageReportLimit>>The server’s usage rows (the usage endpoint’s limits[]), as sent:
which meters apply, their scope, labels, severity and order are the
server’s, so a client renders them verbatim. Empty when the server
reported no meters; None when the body carried no rows at all (a
server that predates them). When the usage fetch failed and the CLI
fell back to rate-limit response headers, this holds at most the one
row it synthesizes from them.
extra_usage: Option<UsageReportExtraUsage>Extra-usage (overage) spend for the billing period, when the plan has it.
extra: Map<String, Value>Trait Implementations§
Source§impl Clone for UsageReportRateLimits
impl Clone for UsageReportRateLimits
Source§fn clone(&self) -> UsageReportRateLimits
fn clone(&self) -> UsageReportRateLimits
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 UsageReportRateLimits
impl Debug for UsageReportRateLimits
Source§impl<'de> Deserialize<'de> for UsageReportRateLimits
impl<'de> Deserialize<'de> for UsageReportRateLimits
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 UsageReportRateLimits
impl RefUnwindSafe for UsageReportRateLimits
impl Send for UsageReportRateLimits
impl Sync for UsageReportRateLimits
impl Unpin for UsageReportRateLimits
impl UnsafeUnpin for UsageReportRateLimits
impl UnwindSafe for UsageReportRateLimits
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