Struct rosetta_types::transaction::Transaction
source · pub struct Transaction {
pub transaction_identifier: TransactionIdentifier,
pub operations: Vec<Operation>,
pub related_transactions: Option<Vec<RelatedTransaction>>,
pub metadata: Option<Value>,
}Expand description
Transaction : Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.
Fields§
§transaction_identifier: TransactionIdentifier§operations: Vec<Operation>§metadata: Option<Value>Transactions that are related to other transactions (like a cross-shard transaction) should include the tranaction_identifier of these transactions in the metadata.
Implementations§
source§impl Transaction
impl Transaction
sourcepub fn new(
transaction_identifier: TransactionIdentifier,
operations: Vec<Operation>
) -> Transaction
pub fn new( transaction_identifier: TransactionIdentifier, operations: Vec<Operation> ) -> Transaction
Transactions contain an array of Operations that are attributable to the same TransactionIdentifier.
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl Default for Transaction
impl Default for Transaction
source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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<Transaction> for Transaction
impl PartialEq<Transaction> for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.