pub enum Action {
CreateAccount(CreateAccountAction),
DeployContract(DeployContractAction),
FunctionCall(Box<FunctionCallAction>),
Transfer(TransferAction),
Pledge(Box<PledgeAction>),
AddKey(Box<AddKeyAction>),
DeleteKey(Box<DeleteKeyAction>),
DeleteAccount(DeleteAccountAction),
Delegate(Box<SignedDelegateAction>),
RegisterRsa2048Keys(Box<RegisterRsa2048KeysAction>),
CreateRsa2048Challenge(Box<CreateRsa2048ChallengeAction>),
}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(Box<FunctionCallAction>)
Transfer(TransferAction)
Pledge(Box<PledgeAction>)
AddKey(Box<AddKeyAction>)
DeleteKey(Box<DeleteKeyAction>)
DeleteAccount(DeleteAccountAction)
Delegate(Box<SignedDelegateAction>)
RegisterRsa2048Keys(Box<RegisterRsa2048KeysAction>)
CreateRsa2048Challenge(Box<CreateRsa2048ChallengeAction>)
Implementations§
Source§impl Action
impl Action
pub fn get_prepaid_gas(&self) -> Gas
pub fn get_deposit_balance(&self) -> Balance
Trait Implementations§
Source§impl BorshDeserialize for Action
impl BorshDeserialize for Action
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Action
impl BorshSerialize for Action
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 ActionView
impl From<Action> for ActionView
Source§impl From<AddKeyAction> for Action
impl From<AddKeyAction> for Action
Source§fn from(add_key_action: AddKeyAction) -> Self
fn from(add_key_action: AddKeyAction) -> Self
Converts to this type from the input type.
Source§impl From<CreateAccountAction> for Action
impl From<CreateAccountAction> for Action
Source§fn from(create_account_action: CreateAccountAction) -> Self
fn from(create_account_action: CreateAccountAction) -> Self
Converts to this type from the input type.
Source§impl From<CreateRsa2048ChallengeAction> for Action
impl From<CreateRsa2048ChallengeAction> for Action
Source§fn from(create_rsa2048_challenge_action: CreateRsa2048ChallengeAction) -> Self
fn from(create_rsa2048_challenge_action: CreateRsa2048ChallengeAction) -> Self
Converts to this type from the input type.
Source§impl From<DeleteAccountAction> for Action
impl From<DeleteAccountAction> for Action
Source§fn from(delete_account_action: DeleteAccountAction) -> Self
fn from(delete_account_action: DeleteAccountAction) -> Self
Converts to this type from the input type.
Source§impl From<DeleteKeyAction> for Action
impl From<DeleteKeyAction> for Action
Source§fn from(delete_key_action: DeleteKeyAction) -> Self
fn from(delete_key_action: DeleteKeyAction) -> Self
Converts to this type from the input type.
Source§impl From<DeployContractAction> for Action
impl From<DeployContractAction> for Action
Source§fn from(deploy_contract_action: DeployContractAction) -> Self
fn from(deploy_contract_action: DeployContractAction) -> Self
Converts to this type from the input type.
Source§impl From<FunctionCallAction> for Action
impl From<FunctionCallAction> for Action
Source§fn from(function_call_action: FunctionCallAction) -> Self
fn from(function_call_action: FunctionCallAction) -> Self
Converts to this type from the input type.
Source§impl From<NonDelegateAction> for Action
impl From<NonDelegateAction> for Action
Source§fn from(action: NonDelegateAction) -> Self
fn from(action: NonDelegateAction) -> Self
Converts to this type from the input type.
Source§impl From<PledgeAction> for Action
impl From<PledgeAction> for Action
Source§fn from(pledge_action: PledgeAction) -> Self
fn from(pledge_action: PledgeAction) -> Self
Converts to this type from the input type.
Source§impl From<RegisterRsa2048KeysAction> for Action
impl From<RegisterRsa2048KeysAction> for Action
Source§fn from(rsa2048_keys_action: RegisterRsa2048KeysAction) -> Self
fn from(rsa2048_keys_action: RegisterRsa2048KeysAction) -> Self
Converts to this type from the input type.
Source§impl From<SignedDelegateAction> for Action
impl From<SignedDelegateAction> for Action
Source§fn from(delegate_action: SignedDelegateAction) -> Self
fn from(delegate_action: SignedDelegateAction) -> Self
Converts to this type from the input type.
Source§impl From<TransferAction> for Action
impl From<TransferAction> for Action
Source§fn from(transfer_action: TransferAction) -> Self
fn from(transfer_action: TransferAction) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Action> for NonDelegateAction
impl TryFrom<Action> for NonDelegateAction
Source§impl TryFrom<ActionView> for Action
impl TryFrom<ActionView> for Action
impl Eq for Action
impl StructuralPartialEq for Action
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<S> AsComponentExternName for S
impl<S> AsComponentExternName for S
Source§fn as_component_extern_name(&self) -> ComponentExternName<'_>
fn as_component_extern_name(&self) -> ComponentExternName<'_>
Converts this receiver into a
ComponentExternName.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more