[][src]Struct algorand_rs::models::Transaction

pub struct Transaction {
    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,
}

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: Stringgenesis_hash: HashDigest

Trait Implementations

impl Debug for Transaction[src]

impl<'de> Deserialize<'de> for Transaction[src]

impl Serialize for Transaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,