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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<CoinAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoinAction, <__D as Deserializer<'de>>::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 for CoinAction
impl PartialEq for CoinAction
Source§impl PartialOrd for CoinAction
impl PartialOrd for CoinAction
Source§impl Serialize for CoinAction
impl Serialize for CoinAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToString for CoinAction
impl ToString for CoinAction
impl Copy for CoinAction
impl Eq for CoinAction
impl StructuralPartialEq for CoinAction
Auto Trait Implementations§
impl Freeze for CoinAction
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