[][src]Enum rchain_v1::rchain::TransactionData

pub enum TransactionData {
    CreateUserAccount(String),
    ChangeStoreValue {
        key: String,
        value: String,
    },
    TransferTokens {
        to: String,
        amount: u128,
    },
    CreateTokens {
        receiver: String,
        amount: u128,
    },
}

A single operation to be stored on the chain Noticeable, enums in rust actually can carry data in a tuple-like structure (CreateUserAccount) or a dictionary-like (the ChangeStoreValue)

Variants

CreateUserAccount(String)

Will be used to store a new user account

ChangeStoreValue

Will be used to change or create a arbitrary value into an account

Fields of ChangeStoreValue

key: Stringvalue: String
TransferTokens

Will be used to move tokens from one owner to another

Fields of TransferTokens

to: Stringamount: u128
CreateTokens

Just create tokens out of nowhere

Fields of CreateTokens

receiver: Stringamount: u128

Trait Implementations

impl Clone for TransactionData[src]

impl Debug for TransactionData[src]

impl PartialEq<TransactionData> for TransactionData[src]

impl StructuralPartialEq for TransactionData[src]

Auto Trait Implementations

impl RefUnwindSafe for TransactionData

impl Send for TransactionData

impl Sync for TransactionData

impl Unpin for TransactionData

impl UnwindSafe for TransactionData

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> 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> 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.