pub enum BundleDiscountType {
PercentageOff,
FixedAmountOff,
FixedPrice,
}Expand description
Bundle discount type
Variants§
PercentageOff
Percentage discount on total
FixedAmountOff
Fixed amount discount
FixedPrice
Fixed price for the bundle
Trait Implementations§
Source§impl Clone for BundleDiscountType
impl Clone for BundleDiscountType
Source§fn clone(&self) -> BundleDiscountType
fn clone(&self) -> BundleDiscountType
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 BundleDiscountType
impl Debug for BundleDiscountType
Source§impl<'de> Deserialize<'de> for BundleDiscountType
impl<'de> Deserialize<'de> for BundleDiscountType
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
Source§impl PartialEq for BundleDiscountType
impl PartialEq for BundleDiscountType
Source§impl Serialize for BundleDiscountType
impl Serialize for BundleDiscountType
impl Eq for BundleDiscountType
impl StructuralPartialEq for BundleDiscountType
Auto Trait Implementations§
impl Freeze for BundleDiscountType
impl RefUnwindSafe for BundleDiscountType
impl Send for BundleDiscountType
impl Sync for BundleDiscountType
impl Unpin for BundleDiscountType
impl UnwindSafe for BundleDiscountType
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