pub struct OperationIdentifier {
pub index: i64,
pub network_index: Option<i64>,
}
Expand description
OperationIdentifier : The operation_identifier uniquely identifies an operation within a transaction.
Fields§
§index: i64
The operation index is used to ensure each operation has a unique identifier within a transaction. This index is only relative to the transaction and NOT GLOBAL. The operations in each transaction should start from index 0. To clarify, there may not be any notion of an operation index in the blockchain being described.
network_index: Option<i64>
Some blockchains specify an operation index that is essential for client use. For example, Bitcoin uses a network_index to identify which UTXO was used in a transaction. network_index should not be populated if there is no notion of an operation index in a blockchain (typically most account-based blockchains).
Implementations§
source§impl OperationIdentifier
impl OperationIdentifier
sourcepub fn new(index: i64) -> OperationIdentifier
pub fn new(index: i64) -> OperationIdentifier
The operation_identifier uniquely identifies an operation within a transaction.
Trait Implementations§
source§impl Clone for OperationIdentifier
impl Clone for OperationIdentifier
source§fn clone(&self) -> OperationIdentifier
fn clone(&self) -> OperationIdentifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OperationIdentifier
impl Debug for OperationIdentifier
source§impl Default for OperationIdentifier
impl Default for OperationIdentifier
source§fn default() -> OperationIdentifier
fn default() -> OperationIdentifier
source§impl<'de> Deserialize<'de> for OperationIdentifier
impl<'de> Deserialize<'de> for OperationIdentifier
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<OperationIdentifier> for OperationIdentifier
impl PartialEq<OperationIdentifier> for OperationIdentifier
source§fn eq(&self, other: &OperationIdentifier) -> bool
fn eq(&self, other: &OperationIdentifier) -> bool
self
and other
values to be equal, and is used
by ==
.