pub struct SubscriptionDiscountTimePeriod {
pub id: DiscountID,
pub starts_at: Option<DateTime<FixedOffset>>,
pub ends_at: Option<DateTime<FixedOffset>>,
}
Expand description
Details of the discount applied to this subscription.
Fields§
§id: DiscountID
Unique Paddle ID for this discount, prefixed with dsc_
.
starts_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this discount was first applied. null
for canceled subscriptions where a discount was redeemed but never applied to a transaction.
ends_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this discount no longer applies. Where a discount has maximum_recurring_intervals
, this is the date of the last billing period where this discount applies. null
where a discount recurs forever.
Trait Implementations§
Source§impl Clone for SubscriptionDiscountTimePeriod
impl Clone for SubscriptionDiscountTimePeriod
Source§fn clone(&self) -> SubscriptionDiscountTimePeriod
fn clone(&self) -> SubscriptionDiscountTimePeriod
Returns a duplicate 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<'de> Deserialize<'de> for SubscriptionDiscountTimePeriod
impl<'de> Deserialize<'de> for SubscriptionDiscountTimePeriod
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 SubscriptionDiscountTimePeriod
impl RefUnwindSafe for SubscriptionDiscountTimePeriod
impl Send for SubscriptionDiscountTimePeriod
impl Sync for SubscriptionDiscountTimePeriod
impl Unpin for SubscriptionDiscountTimePeriod
impl UnwindSafe for SubscriptionDiscountTimePeriod
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