Struct chainhook_types::OperationIdentifier
source · pub struct OperationIdentifier {
pub index: u32,
pub network_index: Option<i64>,
}Expand description
The operation_identifier uniquely identifies an operation within a transaction.
Fields§
§index: u32The 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).
Trait Implementations§
source§impl Clone for OperationIdentifier
impl Clone for OperationIdentifier
source§fn clone(&self) -> OperationIdentifier
fn clone(&self) -> OperationIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OperationIdentifier
impl Debug for 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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<OperationIdentifier> for OperationIdentifier
impl PartialEq<OperationIdentifier> for OperationIdentifier
source§fn eq(&self, other: &OperationIdentifier) -> bool
fn eq(&self, other: &OperationIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for OperationIdentifier
impl Serialize for OperationIdentifier
impl StructuralPartialEq for OperationIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for OperationIdentifier
impl Send for OperationIdentifier
impl Sync for OperationIdentifier
impl Unpin for OperationIdentifier
impl UnwindSafe for OperationIdentifier
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