pub struct SubscriptionDiscountEffectiveFrom {
pub id: DiscountID,
pub effective_from: EffectiveFrom,
}
Expand description
Details of the discount applied to this subscription. Include to add a discount to a subscription. null
to remove a discount.
Fields§
§id: DiscountID
Unique Paddle ID for this discount, prefixed with dsc_
.
effective_from: EffectiveFrom
When this subscription change should take effect from. Defaults to next_billing_period
, which creates a
scheduled_change
to apply the subscription change at the end of the billing period.
Trait Implementations§
Source§impl Clone for SubscriptionDiscountEffectiveFrom
impl Clone for SubscriptionDiscountEffectiveFrom
Source§fn clone(&self) -> SubscriptionDiscountEffectiveFrom
fn clone(&self) -> SubscriptionDiscountEffectiveFrom
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 SubscriptionDiscountEffectiveFrom
impl<'de> Deserialize<'de> for SubscriptionDiscountEffectiveFrom
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 SubscriptionDiscountEffectiveFrom
impl RefUnwindSafe for SubscriptionDiscountEffectiveFrom
impl Send for SubscriptionDiscountEffectiveFrom
impl Sync for SubscriptionDiscountEffectiveFrom
impl Unpin for SubscriptionDiscountEffectiveFrom
impl UnwindSafe for SubscriptionDiscountEffectiveFrom
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