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