pub struct EntitlementUsage {
pub requests: i64,
pub quota: i64,
pub hard_limit: Option<i64>,
pub window_start: DateTime<FixedOffset>,
pub window_end: DateTime<FixedOffset>,
}Expand description
Consumption against the plan’s allowance, in the current window.
Fields§
§requests: i64Requests counted in the current window. The same number a lookup is gated on, and it can lag by a few seconds.
quota: i64What the plan includes. Zero on a plan that includes none.
hard_limit: Option<i64>Where we stop serving. None means NEVER, which is the normal state of
an uncapped paid plan and is not the same as zero. Above the quota and
below this, requests are served and billed as overage.
window_start: DateTime<FixedOffset>When the current allowance period began.
window_end: DateTime<FixedOffset>When the allowance next resets.
Trait Implementations§
Source§impl Clone for EntitlementUsage
impl Clone for EntitlementUsage
Source§impl Debug for EntitlementUsage
impl Debug for EntitlementUsage
Source§impl<'de> Deserialize<'de> for EntitlementUsage
impl<'de> Deserialize<'de> for EntitlementUsage
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
Source§impl PartialEq for EntitlementUsage
impl PartialEq for EntitlementUsage
Source§impl Serialize for EntitlementUsage
impl Serialize for EntitlementUsage
impl StructuralPartialEq for EntitlementUsage
Auto Trait Implementations§
impl Forget for EntitlementUsage
impl Freeze for EntitlementUsage
impl Move for EntitlementUsage
impl RefUnwindSafe for EntitlementUsage
impl Send for EntitlementUsage
impl Sync for EntitlementUsage
impl Unpin for EntitlementUsage
impl UnsafeUnpin for EntitlementUsage
impl UnwindSafe for EntitlementUsage
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