#[non_exhaustive]pub struct SubscriptionUsageWeekly {
pub used_percent: i64,
pub resets_at_ms: i64,
}Expand description
The rolling weekly block: same semantics as SubscriptionUsageWindow
without a duration.
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 weekly budget used (integer ≥ 0, may exceed 100).
resets_at_ms: i64When the weekly window resets, epoch milliseconds.
Trait Implementations§
Source§impl Clone for SubscriptionUsageWeekly
impl Clone for SubscriptionUsageWeekly
impl Copy for SubscriptionUsageWeekly
Source§impl Debug for SubscriptionUsageWeekly
impl Debug for SubscriptionUsageWeekly
Source§impl<'de> Deserialize<'de> for SubscriptionUsageWeekly
impl<'de> Deserialize<'de> for SubscriptionUsageWeekly
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 SubscriptionUsageWeekly
Source§impl PartialEq for SubscriptionUsageWeekly
impl PartialEq for SubscriptionUsageWeekly
Source§impl Serialize for SubscriptionUsageWeekly
impl Serialize for SubscriptionUsageWeekly
impl StructuralPartialEq for SubscriptionUsageWeekly
Auto Trait Implementations§
impl Forget for SubscriptionUsageWeekly
impl Freeze for SubscriptionUsageWeekly
impl Move for SubscriptionUsageWeekly
impl RefUnwindSafe for SubscriptionUsageWeekly
impl Send for SubscriptionUsageWeekly
impl Sync for SubscriptionUsageWeekly
impl Unpin for SubscriptionUsageWeekly
impl UnsafeUnpin for SubscriptionUsageWeekly
impl UnwindSafe for SubscriptionUsageWeekly
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