Enum unc_primitives::action::Action

source ·
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§

Trait Implementations§

source§

impl AsRef<str> for Action

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl BorshDeserialize for Action

source§

fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>

source§

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>

Deserialize this instance from a slice of bytes.
source§

fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>
where R: Read,

source§

impl BorshSerialize for Action

source§

fn serialize<__W: Write>(&self, writer: &mut __W) -> Result<(), Error>

source§

impl Clone for Action

source§

fn clone(&self) -> Action

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Action

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Action

source§

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 EnumExt for Action

source§

fn deserialize_variant<__R: Read>( reader: &mut __R, variant_tag: u8 ) -> Result<Self, Error>

Deserialises given variant of an enum from the reader. Read more
source§

impl From<Action> for ActionView

source§

fn from(action: Action) -> Self

Converts to this type from the input type.
source§

impl From<AddKeyAction> for Action

source§

fn from(add_key_action: AddKeyAction) -> Self

Converts to this type from the input type.
source§

impl From<CreateAccountAction> for Action

source§

fn from(create_account_action: CreateAccountAction) -> Self

Converts to this type from the input type.
source§

impl From<CreateRsa2048ChallengeAction> for Action

source§

fn from(create_rsa2048_challenge_action: CreateRsa2048ChallengeAction) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAccountAction> for Action

source§

fn from(delete_account_action: DeleteAccountAction) -> Self

Converts to this type from the input type.
source§

impl From<DeleteKeyAction> for Action

source§

fn from(delete_key_action: DeleteKeyAction) -> Self

Converts to this type from the input type.
source§

impl From<DeployContractAction> for Action

source§

fn from(deploy_contract_action: DeployContractAction) -> Self

Converts to this type from the input type.
source§

impl From<FunctionCallAction> for Action

source§

fn from(function_call_action: FunctionCallAction) -> Self

Converts to this type from the input type.
source§

impl From<NonDelegateAction> for Action

source§

fn from(action: NonDelegateAction) -> Self

Converts to this type from the input type.
source§

impl From<PledgeAction> for Action

source§

fn from(pledge_action: PledgeAction) -> Self

Converts to this type from the input type.
source§

impl From<RegisterRsa2048KeysAction> for Action

source§

fn from(rsa2048_keys_action: RegisterRsa2048KeysAction) -> Self

Converts to this type from the input type.
source§

impl From<SignedDelegateAction> for Action

source§

fn from(delegate_action: SignedDelegateAction) -> Self

Converts to this type from the input type.
source§

impl From<TransferAction> for Action

source§

fn from(transfer_action: TransferAction) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Action

source§

fn eq(&self, other: &Action) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Action

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<Action> for NonDelegateAction

§

type Error = IsDelegateAction

The type returned in the event of a conversion error.
source§

fn try_from(action: Action) -> Result<Self, IsDelegateAction>

Performs the conversion.
source§

impl TryFrom<ActionView> for Action

§

type Error = Box<dyn Error + Sync + Send>

The type returned in the event of a conversion error.
source§

fn try_from(action_view: ActionView) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for Action

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
source§

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
where S: AsRef<str>,

source§

fn as_component_extern_name(&self) -> ComponentExternName<'_>

Converts this receiver into a ComponentExternName.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

source§

fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,