pub enum Action {
CreateAccount(CreateAccountAction),
DeployContract(DeployContractAction),
FunctionCall(FunctionCallAction),
Transfer(TransferAction),
Stake(StakeAction),
AddKey(AddKeyAction),
DeleteKey(DeleteKeyAction),
DeleteAccount(DeleteAccountAction),
Delegate(SignedDelegateAction),
DeployGlobalContract(DeployGlobalContractAction),
UseGlobalContract(UseGlobalContractAction),
}Expand description
Action
JSON schema
{
"oneOf": [
{
"description": "Create an (sub)account using a transaction `receiver_id` as an ID for\n a new account ID must pass validation rules described here\n <http://nomicon.io/Primitives/Account.html>.",
"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": [
"Delegate"
],
"properties": {
"Delegate": {
"$ref": "#/components/schemas/SignedDelegateAction"
}
},
"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
}
]
}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)
Delegate(SignedDelegateAction)
DeployGlobalContract(DeployGlobalContractAction)
UseGlobalContract(UseGlobalContractAction)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Action, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Action, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Action> for NonDelegateAction
impl From<Action> for NonDelegateAction
Source§fn from(value: Action) -> NonDelegateAction
fn from(value: Action) -> NonDelegateAction
Converts to this type from the input type.
Source§impl From<AddKeyAction> for Action
impl From<AddKeyAction> for Action
Source§fn from(value: AddKeyAction) -> Action
fn from(value: AddKeyAction) -> Action
Converts to this type from the input type.
Source§impl From<CreateAccountAction> for Action
impl From<CreateAccountAction> for Action
Source§fn from(value: CreateAccountAction) -> Action
fn from(value: CreateAccountAction) -> Action
Converts to this type from the input type.
Source§impl From<DeleteAccountAction> for Action
impl From<DeleteAccountAction> for Action
Source§fn from(value: DeleteAccountAction) -> Action
fn from(value: DeleteAccountAction) -> Action
Converts to this type from the input type.
Source§impl From<DeleteKeyAction> for Action
impl From<DeleteKeyAction> for Action
Source§fn from(value: DeleteKeyAction) -> Action
fn from(value: DeleteKeyAction) -> Action
Converts to this type from the input type.
Source§impl From<DeployContractAction> for Action
impl From<DeployContractAction> for Action
Source§fn from(value: DeployContractAction) -> Action
fn from(value: DeployContractAction) -> Action
Converts to this type from the input type.
Source§impl From<DeployGlobalContractAction> for Action
impl From<DeployGlobalContractAction> for Action
Source§fn from(value: DeployGlobalContractAction) -> Action
fn from(value: DeployGlobalContractAction) -> Action
Converts to this type from the input type.
Source§impl From<FunctionCallAction> for Action
impl From<FunctionCallAction> for Action
Source§fn from(value: FunctionCallAction) -> Action
fn from(value: FunctionCallAction) -> Action
Converts to this type from the input type.
Source§impl From<NonDelegateAction> for Action
impl From<NonDelegateAction> for Action
Source§fn from(value: NonDelegateAction) -> Action
fn from(value: NonDelegateAction) -> Action
Converts to this type from the input type.
Source§impl From<SignedDelegateAction> for Action
impl From<SignedDelegateAction> for Action
Source§fn from(value: SignedDelegateAction) -> Action
fn from(value: SignedDelegateAction) -> Action
Converts to this type from the input type.
Source§impl From<StakeAction> for Action
impl From<StakeAction> for Action
Source§fn from(value: StakeAction) -> Action
fn from(value: StakeAction) -> Action
Converts to this type from the input type.
Source§impl From<TransferAction> for Action
impl From<TransferAction> for Action
Source§fn from(value: TransferAction) -> Action
fn from(value: TransferAction) -> Action
Converts to this type from the input type.
Source§impl From<UseGlobalContractAction> for Action
impl From<UseGlobalContractAction> for Action
Source§fn from(value: UseGlobalContractAction) -> Action
fn from(value: UseGlobalContractAction) -> Action
Converts to this type from the input type.
Source§impl Serialize for Action
impl Serialize for Action
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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