Enum stripe::ProductType
source · pub enum ProductType {
Good,
Service,
}
Expand description
An enum representing the possible values of an Product
’s type
field.
Variants§
Implementations§
Trait Implementations§
source§impl AsRef<str> for ProductType
impl AsRef<str> for ProductType
source§impl Clone for ProductType
impl Clone for ProductType
source§fn clone(&self) -> ProductType
fn clone(&self) -> ProductType
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 ProductType
impl Debug for ProductType
source§impl Default for ProductType
impl Default for ProductType
source§impl<'de> Deserialize<'de> for ProductType
impl<'de> Deserialize<'de> for ProductType
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 ProductType
impl Display for ProductType
source§impl PartialEq for ProductType
impl PartialEq for ProductType
source§fn eq(&self, other: &ProductType) -> bool
fn eq(&self, other: &ProductType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ProductType
impl Serialize for ProductType
impl Copy for ProductType
impl Eq for ProductType
impl StructuralPartialEq for ProductType
Auto Trait Implementations§
impl Freeze for ProductType
impl RefUnwindSafe for ProductType
impl Send for ProductType
impl Sync for ProductType
impl Unpin for ProductType
impl UnwindSafe for ProductType
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.