pub struct SubscriptionItem {
pub status: SubscriptionItemStatus,
pub quantity: i64,
pub recurring: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub previously_billed_at: Option<DateTime<FixedOffset>>,
pub next_billed_at: Option<DateTime<FixedOffset>>,
pub trial_dates: Option<TimePeriod>,
pub price: Price,
pub product: Product,
}Expand description
Represents a subscription item.
Fields§
§status: SubscriptionItemStatusStatus of this subscription item. Set automatically by Paddle.
quantity: i64Quantity of this item on the subscription.
recurring: boolWhether this is a recurring item. false if one-time.
created_at: DateTime<Utc>RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
previously_billed_at: Option<DateTime<FixedOffset>>RFC 3339 datetime string of when this item was last billed.
next_billed_at: Option<DateTime<FixedOffset>>RFC 3339 datetime string of when this item is next scheduled to be billed.
trial_dates: Option<TimePeriod>Trial dates for this item.
price: PriceRepresents a price entity.
product: ProductRepresents a product entity.
Trait Implementations§
Source§impl Clone for SubscriptionItem
impl Clone for SubscriptionItem
Source§fn clone(&self) -> SubscriptionItem
fn clone(&self) -> SubscriptionItem
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 SubscriptionItem
impl Debug for SubscriptionItem
Source§impl<'de> Deserialize<'de> for SubscriptionItem
impl<'de> Deserialize<'de> for SubscriptionItem
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 SubscriptionItem
impl RefUnwindSafe for SubscriptionItem
impl Send for SubscriptionItem
impl Sync for SubscriptionItem
impl Unpin for SubscriptionItem
impl UnwindSafe for SubscriptionItem
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