pub enum NonDelegateAction {
CreateAccount(CreateAccountAction),
DeployContract(DeployContractAction),
FunctionCall(FunctionCallAction),
Transfer(TransferAction),
Stake(StakeAction),
AddKey(AddKeyAction),
DeleteKey(DeleteKeyAction),
DeleteAccount(DeleteAccountAction),
DeployGlobalContract(DeployGlobalContractAction),
UseGlobalContract(UseGlobalContractAction),
DeterministicStateInit(DeterministicStateInitAction),
}Expand description
An Action that can be included in a transaction or receipt, excluding delegate actions. This type represents all possible action types except DelegateAction to prevent infinite recursion in meta-transactions.
JSON schema
{
"description": "An Action that can be included in a transaction or receipt, excluding delegate actions. This type represents all possible action types except DelegateAction to prevent infinite recursion in meta-transactions.",
"oneOf": [
{
"description": "Create an (sub)account using a transaction `receiver_id` as an ID for\na new account ID must pass validation rules described here\n<https://nomicon.io/DataStructures/Account>.",
"type": "object",
"required": [
"CreateAccount"
],
"properties": {
"CreateAccount": {
"$ref": "#/components/schemas/CreateAccountAction"
}
},
"additionalProperties": false
},
{
"description": "Sets a Wasm code to a receiver_id",
"type": "object",
"required": [
"DeployContract"
],
"properties": {
"DeployContract": {
"$ref": "#/components/schemas/DeployContractAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"FunctionCall"
],
"properties": {
"FunctionCall": {
"$ref": "#/components/schemas/FunctionCallAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"Transfer"
],
"properties": {
"Transfer": {
"$ref": "#/components/schemas/TransferAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"Stake"
],
"properties": {
"Stake": {
"$ref": "#/components/schemas/StakeAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"AddKey"
],
"properties": {
"AddKey": {
"$ref": "#/components/schemas/AddKeyAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"DeleteKey"
],
"properties": {
"DeleteKey": {
"$ref": "#/components/schemas/DeleteKeyAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"DeleteAccount"
],
"properties": {
"DeleteAccount": {
"$ref": "#/components/schemas/DeleteAccountAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"DeployGlobalContract"
],
"properties": {
"DeployGlobalContract": {
"$ref": "#/components/schemas/DeployGlobalContractAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"UseGlobalContract"
],
"properties": {
"UseGlobalContract": {
"$ref": "#/components/schemas/UseGlobalContractAction"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"DeterministicStateInit"
],
"properties": {
"DeterministicStateInit": {
"$ref": "#/components/schemas/DeterministicStateInitAction"
}
},
"additionalProperties": false
}
]
}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
https://nomicon.io/DataStructures/Account.
DeployContract(DeployContractAction)
Sets a Wasm code to a receiver_id
FunctionCall(FunctionCallAction)
Transfer(TransferAction)
Stake(StakeAction)
AddKey(AddKeyAction)
DeleteKey(DeleteKeyAction)
DeleteAccount(DeleteAccountAction)
DeployGlobalContract(DeployGlobalContractAction)
UseGlobalContract(UseGlobalContractAction)
DeterministicStateInit(DeterministicStateInitAction)
Trait Implementations§
Source§impl Clone for NonDelegateAction
impl Clone for NonDelegateAction
Source§fn clone(&self) -> NonDelegateAction
fn clone(&self) -> NonDelegateAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NonDelegateAction
impl Debug for NonDelegateAction
Source§impl<'de> Deserialize<'de> for NonDelegateAction
impl<'de> Deserialize<'de> for NonDelegateAction
Source§fn 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
Source§impl From<&NonDelegateAction> for NonDelegateAction
impl From<&NonDelegateAction> for NonDelegateAction
Source§fn from(value: &NonDelegateAction) -> Self
fn from(value: &NonDelegateAction) -> Self
Converts to this type from the input type.
Source§impl From<AddKeyAction> for NonDelegateAction
impl From<AddKeyAction> for NonDelegateAction
Source§fn from(value: AddKeyAction) -> Self
fn from(value: AddKeyAction) -> Self
Converts to this type from the input type.
Source§impl From<CreateAccountAction> for NonDelegateAction
impl From<CreateAccountAction> for NonDelegateAction
Source§fn from(value: CreateAccountAction) -> Self
fn from(value: CreateAccountAction) -> Self
Converts to this type from the input type.
Source§impl From<DeleteAccountAction> for NonDelegateAction
impl From<DeleteAccountAction> for NonDelegateAction
Source§fn from(value: DeleteAccountAction) -> Self
fn from(value: DeleteAccountAction) -> Self
Converts to this type from the input type.
Source§impl From<DeleteKeyAction> for NonDelegateAction
impl From<DeleteKeyAction> for NonDelegateAction
Source§fn from(value: DeleteKeyAction) -> Self
fn from(value: DeleteKeyAction) -> Self
Converts to this type from the input type.
Source§impl From<DeployContractAction> for NonDelegateAction
impl From<DeployContractAction> for NonDelegateAction
Source§fn from(value: DeployContractAction) -> Self
fn from(value: DeployContractAction) -> Self
Converts to this type from the input type.
Source§impl From<DeployGlobalContractAction> for NonDelegateAction
impl From<DeployGlobalContractAction> for NonDelegateAction
Source§fn from(value: DeployGlobalContractAction) -> Self
fn from(value: DeployGlobalContractAction) -> Self
Converts to this type from the input type.
Source§impl From<DeterministicStateInitAction> for NonDelegateAction
impl From<DeterministicStateInitAction> for NonDelegateAction
Source§fn from(value: DeterministicStateInitAction) -> Self
fn from(value: DeterministicStateInitAction) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallAction> for NonDelegateAction
impl From<FunctionCallAction> for NonDelegateAction
Source§fn from(value: FunctionCallAction) -> Self
fn from(value: FunctionCallAction) -> Self
Converts to this type from the input type.
Source§impl From<StakeAction> for NonDelegateAction
impl From<StakeAction> for NonDelegateAction
Source§fn from(value: StakeAction) -> Self
fn from(value: StakeAction) -> Self
Converts to this type from the input type.
Source§impl From<TransferAction> for NonDelegateAction
impl From<TransferAction> for NonDelegateAction
Source§fn from(value: TransferAction) -> Self
fn from(value: TransferAction) -> Self
Converts to this type from the input type.
Source§impl From<UseGlobalContractAction> for NonDelegateAction
impl From<UseGlobalContractAction> for NonDelegateAction
Source§fn from(value: UseGlobalContractAction) -> Self
fn from(value: UseGlobalContractAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NonDelegateAction
impl RefUnwindSafe for NonDelegateAction
impl Send for NonDelegateAction
impl Sync for NonDelegateAction
impl Unpin for NonDelegateAction
impl UnwindSafe for NonDelegateAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more