Enum near_primitives::transaction::Action
source · [−]pub enum Action {
CreateAccount(CreateAccountAction),
DeployContract(DeployContractAction),
FunctionCall(FunctionCallAction),
Transfer(TransferAction),
Stake(StakeAction),
AddKey(AddKeyAction),
DeleteKey(DeleteKeyAction),
DeleteAccount(DeleteAccountAction),
}
Variants
CreateAccount(CreateAccountAction)
Create an (sub)account using a transaction receiver_id
as an ID for
a new account ID must pass validation rules described here
http://nomicon.io/Primitives/Account.html.
DeployContract(DeployContractAction)
Sets a Wasm code to a receiver_id
FunctionCall(FunctionCallAction)
Transfer(TransferAction)
Stake(StakeAction)
AddKey(AddKeyAction)
DeleteKey(DeleteKeyAction)
DeleteAccount(DeleteAccountAction)
Implementations
sourceimpl Action
impl Action
pub fn get_prepaid_gas(&self) -> Gas
pub fn get_deposit_balance(&self) -> Balance
Trait Implementations
sourceimpl BorshDeserialize for Action where
CreateAccountAction: BorshDeserialize,
DeployContractAction: BorshDeserialize,
FunctionCallAction: BorshDeserialize,
TransferAction: BorshDeserialize,
StakeAction: BorshDeserialize,
AddKeyAction: BorshDeserialize,
DeleteKeyAction: BorshDeserialize,
DeleteAccountAction: BorshDeserialize,
impl BorshDeserialize for Action where
CreateAccountAction: BorshDeserialize,
DeployContractAction: BorshDeserialize,
FunctionCallAction: BorshDeserialize,
TransferAction: BorshDeserialize,
StakeAction: BorshDeserialize,
AddKeyAction: BorshDeserialize,
DeleteKeyAction: BorshDeserialize,
DeleteAccountAction: BorshDeserialize,
sourceimpl BorshSerialize for Action where
CreateAccountAction: BorshSerialize,
DeployContractAction: BorshSerialize,
FunctionCallAction: BorshSerialize,
TransferAction: BorshSerialize,
StakeAction: BorshSerialize,
AddKeyAction: BorshSerialize,
DeleteKeyAction: BorshSerialize,
DeleteAccountAction: BorshSerialize,
impl BorshSerialize for Action where
CreateAccountAction: BorshSerialize,
DeployContractAction: BorshSerialize,
FunctionCallAction: BorshSerialize,
TransferAction: BorshSerialize,
StakeAction: BorshSerialize,
AddKeyAction: BorshSerialize,
DeleteKeyAction: BorshSerialize,
DeleteAccountAction: BorshSerialize,
sourceimpl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<Action> for ActionView
impl From<Action> for ActionView
sourceimpl From<AddKeyAction> for Action
impl From<AddKeyAction> for Action
sourcefn from(add_key_action: AddKeyAction) -> Self
fn from(add_key_action: AddKeyAction) -> Self
Converts to this type from the input type.
sourceimpl From<CreateAccountAction> for Action
impl From<CreateAccountAction> for Action
sourcefn from(create_account_action: CreateAccountAction) -> Self
fn from(create_account_action: CreateAccountAction) -> Self
Converts to this type from the input type.
sourceimpl From<DeleteAccountAction> for Action
impl From<DeleteAccountAction> for Action
sourcefn from(delete_account_action: DeleteAccountAction) -> Self
fn from(delete_account_action: DeleteAccountAction) -> Self
Converts to this type from the input type.
sourceimpl From<DeleteKeyAction> for Action
impl From<DeleteKeyAction> for Action
sourcefn from(delete_key_action: DeleteKeyAction) -> Self
fn from(delete_key_action: DeleteKeyAction) -> Self
Converts to this type from the input type.
sourceimpl From<DeployContractAction> for Action
impl From<DeployContractAction> for Action
sourcefn from(deploy_contract_action: DeployContractAction) -> Self
fn from(deploy_contract_action: DeployContractAction) -> Self
Converts to this type from the input type.
sourceimpl From<FunctionCallAction> for Action
impl From<FunctionCallAction> for Action
sourcefn from(function_call_action: FunctionCallAction) -> Self
fn from(function_call_action: FunctionCallAction) -> Self
Converts to this type from the input type.
sourceimpl From<StakeAction> for Action
impl From<StakeAction> for Action
sourcefn from(stake_action: StakeAction) -> Self
fn from(stake_action: StakeAction) -> Self
Converts to this type from the input type.
sourceimpl From<TransferAction> for Action
impl From<TransferAction> for Action
sourcefn from(transfer_action: TransferAction) -> Self
fn from(transfer_action: TransferAction) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<ActionView> for Action
impl TryFrom<ActionView> for Action
impl Eq for Action
impl StructuralEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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<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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more