#[non_exhaustive]pub enum DiscountSourceType {
Coupon,
Unknown(String),
}Expand description
The source type of the discount.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Coupon
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for DiscountSourceType
impl Clone for DiscountSourceType
Source§fn clone(&self) -> DiscountSourceType
fn clone(&self) -> DiscountSourceType
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 DiscountSourceType
impl Debug for DiscountSourceType
Source§impl Deserialize for DiscountSourceType
impl Deserialize for DiscountSourceType
Source§impl Display for DiscountSourceType
impl Display for DiscountSourceType
Source§impl FromStr for DiscountSourceType
impl FromStr for DiscountSourceType
Source§impl FromValueOpt for DiscountSourceType
impl FromValueOpt for DiscountSourceType
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for DiscountSourceType
impl PartialEq for DiscountSourceType
impl Eq for DiscountSourceType
impl StructuralPartialEq for DiscountSourceType
Auto Trait Implementations§
impl Freeze for DiscountSourceType
impl RefUnwindSafe for DiscountSourceType
impl Send for DiscountSourceType
impl Sync for DiscountSourceType
impl Unpin for DiscountSourceType
impl UnwindSafe for DiscountSourceType
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