Enum concordium_std::test_infrastructure::ActionsTree[][src]

pub enum ActionsTree {
    Accept,
    SimpleTransfer {
        to: AccountAddress,
        amount: Amount,
    },
    Send {
        to: ContractAddress,
        receive_name: OwnedReceiveName,
        amount: Amount,
        parameter: Vec<u8>,
    },
    AndThen {
        left: Box<ActionsTree>,
        right: Box<ActionsTree>,
    },
    OrElse {
        left: Box<ActionsTree>,
        right: Box<ActionsTree>,
    },
}
Expand description

An actions tree, used to provide a simpler presentation for testing.

Variants

Accept

SimpleTransfer

Fields

amount: Amount

Send

Fields

receive_name: OwnedReceiveName
amount: Amount
parameter: Vec<u8>

AndThen

Fields

right: Box<ActionsTree>

OrElse

Fields

right: Box<ActionsTree>

Trait Implementations

Formats the value using the given formatter. Read more

Default accept action.

Send a given amount to an account.

Send a message to a contract.

If the execution of the first action succeeds, run the second action as well. Read more

If the execution of the first action fails, try the second.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.