pub struct Charge {
pub charge_id: ChargeId,
pub charged_at: DateTime<Utc>,
pub subscription_tier: SubscriptionTier,
pub payment_method: PaymentMethod,
pub invoice_number: InvoiceNumber,
pub amount_in_cents: AmountInCents,
}
Expand description
A charge to a customer for a subscription
Fields§
§charge_id: ChargeId
Local ID of the charge
charged_at: DateTime<Utc>
Timestamp of charge
subscription_tier: SubscriptionTier
Subscription tier at the time of charge
payment_method: PaymentMethod
Payment method used at the time of charge
invoice_number: InvoiceNumber
Stripe invoice number
amount_in_cents: AmountInCents
Amount charged in cents
Auto Trait Implementations§
impl Freeze for Charge
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnwindSafe for Charge
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