pub struct SubscriptionSchema {
pub plan: SubscriptionPlan,
pub purchase_source: PurchaseSource,
pub status: String,
pub current_period_start: String,
pub current_period_end: String,
pub created_at: String,
pub cancelled_at: Option<String>,
}Fields§
§plan: SubscriptionPlanSubscription plan (monthly, annual, or prepaid).
purchase_source: PurchaseSourceHow the subscription was purchased. Mixed means both gems and member tokens were used.
status: StringSubscription status (active, cancelled, past_due, expired).
current_period_start: StringStart of the current billing period.
current_period_end: StringEnd of the current billing period.
created_at: StringWhen the subscription was created.
cancelled_at: Option<String>When the subscription was cancelled.
Implementations§
Source§impl SubscriptionSchema
impl SubscriptionSchema
pub fn new( plan: SubscriptionPlan, purchase_source: PurchaseSource, status: String, current_period_start: String, current_period_end: String, created_at: String, ) -> SubscriptionSchema
Trait Implementations§
Source§impl Clone for SubscriptionSchema
impl Clone for SubscriptionSchema
Source§fn clone(&self) -> SubscriptionSchema
fn clone(&self) -> SubscriptionSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscriptionSchema
impl Debug for SubscriptionSchema
Source§impl Default for SubscriptionSchema
impl Default for SubscriptionSchema
Source§fn default() -> SubscriptionSchema
fn default() -> SubscriptionSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscriptionSchema
impl<'de> Deserialize<'de> for SubscriptionSchema
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
Source§impl PartialEq for SubscriptionSchema
impl PartialEq for SubscriptionSchema
Source§fn eq(&self, other: &SubscriptionSchema) -> bool
fn eq(&self, other: &SubscriptionSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubscriptionSchema
impl Serialize for SubscriptionSchema
impl StructuralPartialEq for SubscriptionSchema
Auto Trait Implementations§
impl Freeze for SubscriptionSchema
impl RefUnwindSafe for SubscriptionSchema
impl Send for SubscriptionSchema
impl Sync for SubscriptionSchema
impl Unpin for SubscriptionSchema
impl UnsafeUnpin for SubscriptionSchema
impl UnwindSafe for SubscriptionSchema
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