pub struct Transaction {Show 13 fields
pub txn_type: String,
pub transaction_id: String,
pub from: String,
pub fee: MicroAlgos,
pub first_round: Round,
pub last_round: Round,
pub note: Vec<u8>,
pub round: Option<u64>,
pub pool_error: String,
pub payment: Option<PaymentTransactionType>,
pub from_rewards: Option<u64>,
pub genesis_id: String,
pub genesis_hash: HashDigest,
}
Expand description
Transaction contains all fields common to all transactions and serves as an envelope to all transactions type
Fields§
§txn_type: String
The transaction type
transaction_id: String
The transaction ID
from: String
The sender’s address
fee: MicroAlgos
Fee is the transaction fee
first_round: Round
The first valid round for this transaction
last_round: Round
The last valid round for this transaction
note: Vec<u8>
Note is a free form data
round: Option<u64>
The block number this transaction appeared in
pool_error: String
Indicates the transaction was evicted from this node’s transaction pool (if non-empty). A non-empty pool_error does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future.
payment: Option<PaymentTransactionType>
§from_rewards: Option<u64>
the amount of pending rewards applied to the from account as part of this transaction.
genesis_id: String
§genesis_hash: HashDigest
Trait Implementations§
Source§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
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more