Struct stripe::UsageRecordSummary
source · pub struct UsageRecordSummary {
pub id: UsageRecordSummaryId,
pub invoice: Option<String>,
pub livemode: bool,
pub period: Period,
pub subscription_item: String,
pub total_usage: i64,
}
Expand description
The resource representing a Stripe “UsageRecordSummary”.
Fields§
§id: UsageRecordSummaryId
Unique identifier for the object.
invoice: Option<String>
The invoice in which this usage period has been billed for.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
period: Period
§subscription_item: String
The ID of the subscription item this summary is describing.
total_usage: i64
The total usage within this usage period.
Trait Implementations§
source§impl Clone for UsageRecordSummary
impl Clone for UsageRecordSummary
source§fn clone(&self) -> UsageRecordSummary
fn clone(&self) -> UsageRecordSummary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UsageRecordSummary
impl Debug for UsageRecordSummary
source§impl Default for UsageRecordSummary
impl Default for UsageRecordSummary
source§fn default() -> UsageRecordSummary
fn default() -> UsageRecordSummary
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UsageRecordSummary
impl<'de> Deserialize<'de> for UsageRecordSummary
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