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: ChargeIdLocal ID of the charge
charged_at: DateTime<Utc>Timestamp of charge
subscription_tier: SubscriptionTierSubscription tier at the time of charge
payment_method: PaymentMethodPayment method used at the time of charge
invoice_number: InvoiceNumberStripe invoice number
amount_in_cents: AmountInCentsAmount 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