Struct ex3_node_types::transaction::Transaction
source · pub struct Transaction {
pub type: Type,
pub version: Version,
pub from: WalletRegisterId,
pub nonce: Option<Nonce>,
pub payload: ByteBuf,
pub signature: Option<ByteBuf>,
}Fields§
§type: Type§version: Version§from: WalletRegisterId§nonce: Option<Nonce>if the transaction type is [Deposit], this field is None
payload: ByteBuf§signature: Option<ByteBuf>Implementations§
source§impl Transaction
impl Transaction
pub fn hash(&self) -> TransactionHash
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<'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 From<&EncodedTransaction> for Transaction
impl From<&EncodedTransaction> for Transaction
source§fn from(tx: &EncodedTransaction) -> Self
fn from(tx: &EncodedTransaction) -> Self
Converts to this type from the input type.
source§impl From<&Transaction> for EncodedTransaction
impl From<&Transaction> for EncodedTransaction
source§fn from(tx: &Transaction) -> Self
fn from(tx: &Transaction) -> Self
Converts to this type from the input type.
source§impl From<EncodedTransaction> for Transaction
impl From<EncodedTransaction> for Transaction
source§fn from(tx: EncodedTransaction) -> Self
fn from(tx: EncodedTransaction) -> Self
Converts to this type from the input type.
source§impl From<Transaction> for EncodedTransaction
impl From<Transaction> for EncodedTransaction
source§fn from(tx: Transaction) -> Self
fn from(tx: Transaction) -> Self
Converts to this type from the input type.
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 ==.