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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more