[][src]Struct iota_model::Transaction

pub struct Transaction {
    pub hash: String,
    pub signature_fragments: String,
    pub address: String,
    pub value: i64,
    pub obsolete_tag: String,
    pub timestamp: i64,
    pub current_index: usize,
    pub last_index: usize,
    pub bundle: String,
    pub trunk_transaction: String,
    pub branch_transaction: String,
    pub nonce: String,
    pub persistence: bool,
    pub tag: String,
    pub attachment_timestamp: i64,
    pub attachment_timestamp_lower_bound: i64,
    pub attachment_timestamp_upper_bound: i64,
}

Represents an IOTA transaction

Fields

hash: String

Transaction Hash

signature_fragments: String

A signature or a message, both of which may be fragmented over multiple transactions in the bundle.

address: String

Contains either the sender or recipient's address.

value: i64

Amount of IOTA tokens to deposit to or withdraw from the address

obsolete_tag: String

User-defined tag (soon to be removed)

timestamp: i64

Unix epoch: Seconds since Jan 1, 1970

current_index: usize

Index of a transaction in the bundle

last_index: usize

Index of the last transaction in the bundle

bundle: String

Hash of the bundle

trunk_transaction: String

Trunk transaction hash

branch_transaction: String

Branch transaction hash

nonce: String

Trytes that represent the amount of times a transaction must be hashed to check the proof of work.

persistence: bool

Persistence of transaction

tag: String

User-defined tag

attachment_timestamp: i64

Unix epoch: Milliseconds since Jan 1, 1970 (after POW)

attachment_timestamp_lower_bound: i64

Lower limit of the attachmentTimestamp field (not currently used)

attachment_timestamp_upper_bound: i64

Upper limit of the attachmentTimestamp field (not currently used)

Trait Implementations

impl Clone for Transaction[src]

impl Default for Transaction[src]

impl PartialEq<Transaction> for Transaction[src]

impl Debug for Transaction[src]

impl FromStr for Transaction[src]

type Err = Error

The associated error which can be returned from parsing.

impl TryInto<String> for Transaction[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryInto<String> for &'_ Transaction[src]

type Error = Error

The type returned in the event of a conversion error.

impl Serialize for Transaction[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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