pub struct SubscriptionMeter {
pub created_at: DateTime<Utc>,
pub modified_at: Option<DateTime<Utc>>,
pub id: Uuid,
pub consumed_units: usize,
pub credited_units: usize,
pub amount: u32,
pub meter_id: Uuid,
pub meter: Meter,
}Fields§
§created_at: DateTime<Utc>Creation timestamp of the object.
modified_at: Option<DateTime<Utc>>Last modification timestamp of the object.
id: UuidThe ID of the object.
consumed_units: usizeThe number of consumed units so far in this billing period.
credited_units: usizeThe number of credited units so far in this billing period.
amount: u32The amount due in cents so far in this billing period.
meter_id: UuidThe ID of the meter.
meter: MeterThe meter associated with this subscription.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SubscriptionMeter
impl<'de> Deserialize<'de> for SubscriptionMeter
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 SubscriptionMeter
impl RefUnwindSafe for SubscriptionMeter
impl Send for SubscriptionMeter
impl Sync for SubscriptionMeter
impl Unpin for SubscriptionMeter
impl UnwindSafe for SubscriptionMeter
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