#[non_exhaustive]pub enum ShippingRateType {
FixedAmount,
Unknown(String),
}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.
FixedAmount
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for ShippingRateType
impl Clone for ShippingRateType
Source§fn clone(&self) -> ShippingRateType
fn clone(&self) -> ShippingRateType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShippingRateType
Available on non-crate feature redact-generated-debug only.
impl Debug for ShippingRateType
Available on non-crate feature
redact-generated-debug only.Source§impl Deserialize for ShippingRateType
impl Deserialize for ShippingRateType
Source§impl Display for ShippingRateType
impl Display for ShippingRateType
Source§impl FromStr for ShippingRateType
impl FromStr for ShippingRateType
Source§impl FromValueOpt for ShippingRateType
impl FromValueOpt for ShippingRateType
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for ShippingRateType
impl PartialEq for ShippingRateType
Source§fn eq(&self, other: &ShippingRateType) -> bool
fn eq(&self, other: &ShippingRateType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShippingRateType
impl Serialize for ShippingRateType
impl Eq for ShippingRateType
impl StructuralPartialEq for ShippingRateType
Auto Trait Implementations§
impl Freeze for ShippingRateType
impl RefUnwindSafe for ShippingRateType
impl Send for ShippingRateType
impl Sync for ShippingRateType
impl Unpin for ShippingRateType
impl UnsafeUnpin for ShippingRateType
impl UnwindSafe for ShippingRateType
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