#[non_exhaustive]
pub enum VmAction {
CreateAccount,
DeployContract {
code: Vec<u8>,
},
FunctionCall {
function_name: String,
args: Vec<u8>,
gas: Gas,
deposit: Balance,
},
Transfer {
deposit: Balance,
},
Stake {
stake: Balance,
public_key: PublicKey,
},
AddKeyWithFullAccess {
public_key: PublicKey,
nonce: u64,
},
AddKeyWithFunctionCall {
public_key: PublicKey,
nonce: u64,
allowance: Option<Balance>,
receiver_id: AccountId,
function_names: Vec<String>,
},
DeleteKey {
public_key: PublicKey,
},
DeleteAccount {
beneficiary_id: AccountId,
},
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateAccount
DeployContract
FunctionCall
Transfer
Fields
deposit: Balance
Stake
AddKeyWithFullAccess
AddKeyWithFunctionCall
DeleteKey
Fields
public_key: PublicKey
DeleteAccount
Fields
beneficiary_id: AccountId
Trait Implementations
impl Eq for VmAction
impl StructuralEq for VmAction
impl StructuralPartialEq for VmAction
Auto Trait Implementations
impl RefUnwindSafe for VmAction
impl Send for VmAction
impl Sync for VmAction
impl Unpin for VmAction
impl UnwindSafe for VmAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more