#[repr(i32)]pub enum StandardContractType {
Currency = 0,
Deposit = 1,
Swap = 2,
}Variants§
Implementations§
Trait Implementations§
source§impl Clone for StandardContractType
impl Clone for StandardContractType
source§fn clone(&self) -> StandardContractType
fn clone(&self) -> StandardContractType
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 StandardContractType
impl Debug for StandardContractType
source§impl Default for StandardContractType
impl Default for StandardContractType
source§fn default() -> StandardContractType
fn default() -> StandardContractType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StandardContractType
impl<'de> Deserialize<'de> for StandardContractType
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 From<StandardContractType> for i32
impl From<StandardContractType> for i32
source§fn from(value: StandardContractType) -> i32
fn from(value: StandardContractType) -> i32
Converts to this type from the input type.
source§impl FromStr for StandardContractType
impl FromStr for StandardContractType
source§impl Hash for StandardContractType
impl Hash for StandardContractType
source§impl IntoEnumIterator for StandardContractType
impl IntoEnumIterator for StandardContractType
type Iterator = StandardContractTypeIter
fn iter() -> StandardContractTypeIter ⓘ
source§impl Ord for StandardContractType
impl Ord for StandardContractType
source§fn cmp(&self, other: &StandardContractType) -> Ordering
fn cmp(&self, other: &StandardContractType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StandardContractType
impl PartialEq for StandardContractType
source§fn eq(&self, other: &StandardContractType) -> bool
fn eq(&self, other: &StandardContractType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for StandardContractType
impl PartialOrd for StandardContractType
source§fn partial_cmp(&self, other: &StandardContractType) -> Option<Ordering>
fn partial_cmp(&self, other: &StandardContractType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for StandardContractType
impl Serialize for StandardContractType
source§impl TryFrom<&str> for StandardContractType
impl TryFrom<&str> for StandardContractType
impl Copy for StandardContractType
impl Eq for StandardContractType
impl StructuralEq for StandardContractType
impl StructuralPartialEq for StandardContractType
Auto Trait Implementations§
impl RefUnwindSafe for StandardContractType
impl Send for StandardContractType
impl Sync for StandardContractType
impl Unpin for StandardContractType
impl UnwindSafe for StandardContractType
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