pub struct SubscriptionPlan {
pub plan_id: PlanId,
pub plan_type: PlanType,
pub price_id: StripePriceId,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
A subscription plan
In Stripe this would correspond to a Price within a Product.
Fields§
§plan_id: PlanId
Local ID of the subscription plan
plan_type: PlanType
Plan type
price_id: StripePriceId
Stripe price ID
created_at: DateTime<Utc>
When the plan was originally created.
updated_at: Option<DateTime<Utc>>
When the plan was last updated.
Trait Implementations§
Source§impl Clone for SubscriptionPlan
impl Clone for SubscriptionPlan
Source§fn clone(&self) -> SubscriptionPlan
fn clone(&self) -> SubscriptionPlan
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 SubscriptionPlan
impl Debug for SubscriptionPlan
Source§impl<'de> Deserialize<'de> for SubscriptionPlan
impl<'de> Deserialize<'de> for SubscriptionPlan
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 SubscriptionPlan
impl RefUnwindSafe for SubscriptionPlan
impl Send for SubscriptionPlan
impl Sync for SubscriptionPlan
impl Unpin for SubscriptionPlan
impl UnwindSafe for SubscriptionPlan
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