pub struct DiscountSource {
pub coupon: Option<Expandable<Coupon>>,
pub type_: DiscountSourceType,
}
Fields§
§coupon: Option<Expandable<Coupon>>
The coupon that was redeemed to create this discount.
type_: DiscountSourceType
The source type of the discount.
Trait Implementations§
Source§impl Clone for DiscountSource
impl Clone for DiscountSource
Source§fn clone(&self) -> DiscountSource
fn clone(&self) -> DiscountSource
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 Debug for DiscountSource
impl Debug for DiscountSource
Source§impl Deserialize for DiscountSource
impl Deserialize for DiscountSource
Source§impl FromValueOpt for DiscountSource
impl FromValueOpt for DiscountSource
fn from_value(v: Value) -> Option<Self>
Source§impl ObjectDeser for DiscountSource
impl ObjectDeser for DiscountSource
Auto Trait Implementations§
impl Freeze for DiscountSource
impl RefUnwindSafe for DiscountSource
impl Send for DiscountSource
impl Sync for DiscountSource
impl Unpin for DiscountSource
impl UnwindSafe for DiscountSource
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