pub struct TransactionIdentifier {
pub hash: String,
}
Expand description
TransactionIdentifier : The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.
Fields§
§hash: String
Any transactions that are attributable only to a block (ex: a block event) should use the hash of the block as the identifier. This should be normalized according to the case specified in the transaction_hash_case in network options.
Implementations§
source§impl TransactionIdentifier
impl TransactionIdentifier
sourcepub fn new(hash: String) -> TransactionIdentifier
pub fn new(hash: String) -> TransactionIdentifier
The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool.
Trait Implementations§
source§impl Clone for TransactionIdentifier
impl Clone for TransactionIdentifier
source§fn clone(&self) -> TransactionIdentifier
fn clone(&self) -> TransactionIdentifier
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 TransactionIdentifier
impl Debug for TransactionIdentifier
source§impl Default for TransactionIdentifier
impl Default for TransactionIdentifier
source§fn default() -> TransactionIdentifier
fn default() -> TransactionIdentifier
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransactionIdentifier
impl<'de> Deserialize<'de> for TransactionIdentifier
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<TransactionIdentifier> for TransactionIdentifier
impl PartialEq<TransactionIdentifier> for TransactionIdentifier
source§fn eq(&self, other: &TransactionIdentifier) -> bool
fn eq(&self, other: &TransactionIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionIdentifier
impl Serialize for TransactionIdentifier
impl Eq for TransactionIdentifier
impl StructuralEq for TransactionIdentifier
impl StructuralPartialEq for TransactionIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for TransactionIdentifier
impl Send for TransactionIdentifier
impl Sync for TransactionIdentifier
impl Unpin for TransactionIdentifier
impl UnwindSafe for TransactionIdentifier
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