#[non_exhaustive]pub struct SubscriptionUsageWindow {
pub used_percent: i64,
pub window_duration_mins: i64,
pub resets_at_ms: i64,
}Expand description
The current usage window (the provider’s 5-hour-class block): verbatim provider percentages with the reset stamp normalized to epoch milliseconds.
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.used_percent: i64Percent of the window’s budget used: an integer ≥ 0, verbatim from the provider — over-quota values above 100 are valid.
window_duration_mins: i64The window’s length in minutes (> 0).
resets_at_ms: i64When the window resets, epoch milliseconds.
Trait Implementations§
Source§impl Clone for SubscriptionUsageWindow
impl Clone for SubscriptionUsageWindow
impl Copy for SubscriptionUsageWindow
Source§impl Debug for SubscriptionUsageWindow
impl Debug for SubscriptionUsageWindow
Source§impl<'de> Deserialize<'de> for SubscriptionUsageWindow
impl<'de> Deserialize<'de> for SubscriptionUsageWindow
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 Eq for SubscriptionUsageWindow
Source§impl PartialEq for SubscriptionUsageWindow
impl PartialEq for SubscriptionUsageWindow
Source§impl Serialize for SubscriptionUsageWindow
impl Serialize for SubscriptionUsageWindow
impl StructuralPartialEq for SubscriptionUsageWindow
Auto Trait Implementations§
impl Forget for SubscriptionUsageWindow
impl Freeze for SubscriptionUsageWindow
impl Move for SubscriptionUsageWindow
impl RefUnwindSafe for SubscriptionUsageWindow
impl Send for SubscriptionUsageWindow
impl Sync for SubscriptionUsageWindow
impl Unpin for SubscriptionUsageWindow
impl UnsafeUnpin for SubscriptionUsageWindow
impl UnwindSafe for SubscriptionUsageWindow
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