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\na 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<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<Action> for NonDelegateAction
impl From<Action> for NonDelegateAction
Source§impl From<AddKeyAction> for Action
impl From<AddKeyAction> for Action
Source§fn from(value: AddKeyAction) -> Self
fn from(value: AddKeyAction) -> Self
Converts to this type from the input type.
Source§impl From<CreateAccountAction> for Action
impl From<CreateAccountAction> for Action
Source§fn from(value: CreateAccountAction) -> Self
fn from(value: CreateAccountAction) -> Self
Converts to this type from the input type.
Source§impl From<DeleteAccountAction> for Action
impl From<DeleteAccountAction> for Action
Source§fn from(value: DeleteAccountAction) -> Self
fn from(value: DeleteAccountAction) -> Self
Converts to this type from the input type.
Source§impl From<DeleteKeyAction> for Action
impl From<DeleteKeyAction> for Action
Source§fn from(value: DeleteKeyAction) -> Self
fn from(value: DeleteKeyAction) -> Self
Converts to this type from the input type.
Source§impl From<DeployContractAction> for Action
impl From<DeployContractAction> for Action
Source§fn from(value: DeployContractAction) -> Self
fn from(value: DeployContractAction) -> Self
Converts to this type from the input type.
Source§impl From<DeployGlobalContractAction> for Action
impl From<DeployGlobalContractAction> for Action
Source§fn from(value: DeployGlobalContractAction) -> Self
fn from(value: DeployGlobalContractAction) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallAction> for Action
impl From<FunctionCallAction> for Action
Source§fn from(value: FunctionCallAction) -> Self
fn from(value: FunctionCallAction) -> Self
Converts to this type from the input type.
Source§impl From<NonDelegateAction> for Action
impl From<NonDelegateAction> for Action
Source§fn from(value: NonDelegateAction) -> Self
fn from(value: NonDelegateAction) -> Self
Converts to this type from the input type.
Source§impl From<SignedDelegateAction> for Action
impl From<SignedDelegateAction> for Action
Source§fn from(value: SignedDelegateAction) -> Self
fn from(value: SignedDelegateAction) -> Self
Converts to this type from the input type.
Source§impl From<StakeAction> for Action
impl From<StakeAction> for Action
Source§fn from(value: StakeAction) -> Self
fn from(value: StakeAction) -> Self
Converts to this type from the input type.
Source§impl From<TransferAction> for Action
impl From<TransferAction> for Action
Source§fn from(value: TransferAction) -> Self
fn from(value: TransferAction) -> Self
Converts to this type from the input type.
Source§impl From<UseGlobalContractAction> for Action
impl From<UseGlobalContractAction> for Action
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 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