Struct concordium_std::Action [−][src]
#[must_use]pub struct Action { /* fields omitted */ }
Expand description
Actions that can be produced at the end of a contract execution. This
type is deliberately not cloneable so that we can enforce that
and_then
and or_else
can only be used when more than one event is
created.
This type is marked as must_use
since functions that produce
values of the type are effectful.
Implementations
Trait Implementations
impl HasActions for Action
[src]
impl HasActions for Action
[src]#Implementation of actions. These actions are implemented by direct calls to host functions.
fn simple_transfer(acc: &AccountAddress, amount: Amount) -> Self
[src]
fn simple_transfer(acc: &AccountAddress, amount: Amount) -> Self
[src]Send a given amount to an account.
fn send_raw(
ca: &ContractAddress,
receive_name: ReceiveName<'_>,
amount: Amount,
parameter: &[u8]
) -> Self
[src]
fn send_raw(
ca: &ContractAddress,
receive_name: ReceiveName<'_>,
amount: Amount,
parameter: &[u8]
) -> Self
[src]Send a message to a contract.