Enum rosetta_types::coin_action::CoinAction
source · pub enum CoinAction {
Created,
Spent,
}
Expand description
CoinAction : CoinActions are different state changes that a Coin can undergo. When a Coin is created, it is coin_created. When a Coin is spent, it is coin_spent. It is assumed that a single Coin cannot be created or spent more than once. CoinActions are different state changes that a Coin can undergo. When a Coin is created, it is coin_created. When a Coin is spent, it is coin_spent. It is assumed that a single Coin cannot be created or spent more than once.
Variants§
Trait Implementations§
source§impl Clone for CoinAction
impl Clone for CoinAction
source§fn clone(&self) -> CoinAction
fn clone(&self) -> CoinAction
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 CoinAction
impl Debug for CoinAction
source§impl Default for CoinAction
impl Default for CoinAction
source§fn default() -> CoinAction
fn default() -> CoinAction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CoinAction
impl<'de> Deserialize<'de> for CoinAction
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 Hash for CoinAction
impl Hash for CoinAction
source§impl Ord for CoinAction
impl Ord for CoinAction
source§fn cmp(&self, other: &CoinAction) -> Ordering
fn cmp(&self, other: &CoinAction) -> 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<CoinAction> for CoinAction
impl PartialEq<CoinAction> for CoinAction
source§fn eq(&self, other: &CoinAction) -> bool
fn eq(&self, other: &CoinAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CoinAction> for CoinAction
impl PartialOrd<CoinAction> for CoinAction
source§fn partial_cmp(&self, other: &CoinAction) -> Option<Ordering>
fn partial_cmp(&self, other: &CoinAction) -> 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 CoinAction
impl Serialize for CoinAction
source§impl ToString for CoinAction
impl ToString for CoinAction
impl Copy for CoinAction
impl Eq for CoinAction
impl StructuralEq for CoinAction
impl StructuralPartialEq for CoinAction
Auto Trait Implementations§
impl RefUnwindSafe for CoinAction
impl Send for CoinAction
impl Sync for CoinAction
impl Unpin for CoinAction
impl UnwindSafe for CoinAction
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