pub struct AppliedCoupon {
pub coupon_name: String,
pub coupon_percent: Option<Percent>,
pub coupon_from: DateTime<Utc>,
pub coupon_to: Option<DateTime<Utc>>,
}
Expand description
Details of a coupon applied to a subscription
Fields§
§coupon_name: String
Name of the coupon applied when the subscription was created
coupon_percent: Option<Percent>
If a coupon was applied, this would indicate the discount percent
coupon_from: DateTime<Utc>
Date the coupon is valid from on this subscription
coupon_to: Option<DateTime<Utc>>
Date this coupon is valid until on this subscription
Trait Implementations§
Source§impl Clone for AppliedCoupon
impl Clone for AppliedCoupon
Source§fn clone(&self) -> AppliedCoupon
fn clone(&self) -> AppliedCoupon
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 AppliedCoupon
impl Debug for AppliedCoupon
Source§impl<'de> Deserialize<'de> for AppliedCoupon
impl<'de> Deserialize<'de> for AppliedCoupon
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 AppliedCoupon
impl RefUnwindSafe for AppliedCoupon
impl Send for AppliedCoupon
impl Sync for AppliedCoupon
impl Unpin for AppliedCoupon
impl UnwindSafe for AppliedCoupon
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