#[non_exhaustive]pub struct SubscriptionUsage {
pub window: SubscriptionUsageWindow,
pub weekly: SubscriptionUsageWeekly,
pub tier: String,
pub observed_at_ms: i64,
}Expand description
The one usage payload shape: the usage/read result’s usage member and
the usage/changed params. The numbers are point-in-time — observedAtMs
is the host’s arrival stamp, so a client renders “as of”, never implies live
data.
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.window: SubscriptionUsageWindowThe current window.
weekly: SubscriptionUsageWeeklyThe rolling weekly block.
tier: StringThe provider’s subscription tier id, verbatim.
observed_at_ms: i64When the host RECEIVED this observation (frame arrival or mint request-send), epoch milliseconds.
Trait Implementations§
Source§impl Clone for SubscriptionUsage
impl Clone for SubscriptionUsage
Source§impl Debug for SubscriptionUsage
impl Debug for SubscriptionUsage
Source§impl<'de> Deserialize<'de> for SubscriptionUsage
impl<'de> Deserialize<'de> for SubscriptionUsage
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 SubscriptionUsage
Source§impl PartialEq for SubscriptionUsage
impl PartialEq for SubscriptionUsage
Source§impl Serialize for SubscriptionUsage
impl Serialize for SubscriptionUsage
impl StructuralPartialEq for SubscriptionUsage
Auto Trait Implementations§
impl Forget for SubscriptionUsage
impl Freeze for SubscriptionUsage
impl Move for SubscriptionUsage
impl RefUnwindSafe for SubscriptionUsage
impl Send for SubscriptionUsage
impl Sync for SubscriptionUsage
impl Unpin for SubscriptionUsage
impl UnsafeUnpin for SubscriptionUsage
impl UnwindSafe for SubscriptionUsage
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