Enum stripe::CouponDuration
source · pub enum CouponDuration {
Forever,
Once,
Repeating,
}
Expand description
An enum representing the possible values of an Coupon
’s duration
field.
Variants§
Implementations§
Trait Implementations§
source§impl AsRef<str> for CouponDuration
impl AsRef<str> for CouponDuration
source§impl Clone for CouponDuration
impl Clone for CouponDuration
source§fn clone(&self) -> CouponDuration
fn clone(&self) -> CouponDuration
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 CouponDuration
impl Debug for CouponDuration
source§impl Default for CouponDuration
impl Default for CouponDuration
source§impl<'de> Deserialize<'de> for CouponDuration
impl<'de> Deserialize<'de> for CouponDuration
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 Display for CouponDuration
impl Display for CouponDuration
source§impl PartialEq for CouponDuration
impl PartialEq for CouponDuration
source§fn eq(&self, other: &CouponDuration) -> bool
fn eq(&self, other: &CouponDuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CouponDuration
impl Serialize for CouponDuration
impl Copy for CouponDuration
impl Eq for CouponDuration
impl StructuralPartialEq for CouponDuration
Auto Trait Implementations§
impl Freeze for CouponDuration
impl RefUnwindSafe for CouponDuration
impl Send for CouponDuration
impl Sync for CouponDuration
impl Unpin for CouponDuration
impl UnwindSafe for CouponDuration
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.