Struct rosetta_types::coin_change::CoinChange
source · pub struct CoinChange {
pub coin_identifier: CoinIdentifier,
pub coin_action: CoinAction,
}
Expand description
CoinChange : CoinChange is used to represent a change in state of a some coin identified by a coin_identifier. This object is part of the Operation model and must be populated for UTXO-based blockchains. Coincidentally, this abstraction of UTXOs allows for supporting both account-based transfers and UTXO-based transfers on the same blockchain (when a transfer is account-based, don’t populate this model).
Fields§
§coin_identifier: CoinIdentifier
§coin_action: CoinAction
Implementations§
source§impl CoinChange
impl CoinChange
sourcepub fn new(
coin_identifier: CoinIdentifier,
coin_action: CoinAction
) -> CoinChange
pub fn new( coin_identifier: CoinIdentifier, coin_action: CoinAction ) -> CoinChange
CoinChange is used to represent a change in state of a some coin identified by a coin_identifier. This object is part of the Operation model and must be populated for UTXO-based blockchains. Coincidentally, this abstraction of UTXOs allows for supporting both account-based transfers and UTXO-based transfers on the same blockchain (when a transfer is account-based, don’t populate this model).
Trait Implementations§
source§impl Clone for CoinChange
impl Clone for CoinChange
source§fn clone(&self) -> CoinChange
fn clone(&self) -> CoinChange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CoinChange
impl Debug for CoinChange
source§impl Default for CoinChange
impl Default for CoinChange
source§fn default() -> CoinChange
fn default() -> CoinChange
source§impl<'de> Deserialize<'de> for CoinChange
impl<'de> Deserialize<'de> for CoinChange
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>,
source§impl PartialEq<CoinChange> for CoinChange
impl PartialEq<CoinChange> for CoinChange
source§fn eq(&self, other: &CoinChange) -> bool
fn eq(&self, other: &CoinChange) -> bool
self
and other
values to be equal, and is used
by ==
.