pub struct Account {
pub account_id: AccountId,
pub account_type: AccountType,
pub stripe_customer_id: Option<CustomerId>,
pub payment_method: Option<PaymentMethod>,
pub subscription: Option<Subscription>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
A billing account
Fields§
§account_id: AccountId
Account ID
account_type: AccountType
The type of account
stripe_customer_id: Option<CustomerId>
The customer ID on stripe
payment_method: Option<PaymentMethod>
Stripe payment method, if any
subscription: Option<Subscription>
Current subscription if any
created_at: DateTime<Utc>
When the account was created.
updated_at: Option<DateTime<Utc>>
When the account was last updated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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 Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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