Enum multiversx_chain_vm::types::EsdtLocalRole
source · pub enum EsdtLocalRole {
None,
Mint,
Burn,
NftCreate,
NftAddQuantity,
NftBurn,
NftAddUri,
NftUpdateAttributes,
Transfer,
}Expand description
The VM implementation for EsdtLocalRole, used internally in builtin functions.
There is another near-identical implementation in the framework, used for communicating with the VM.
It might be a good idea to move it to some “common ground” crate, between the framework and the VM.
Variants§
Implementations§
source§impl EsdtLocalRole
impl EsdtLocalRole
source§impl EsdtLocalRole
impl EsdtLocalRole
pub fn iter_all() -> Iter<'static, EsdtLocalRole>
Trait Implementations§
source§impl Clone for EsdtLocalRole
impl Clone for EsdtLocalRole
source§fn clone(&self) -> EsdtLocalRole
fn clone(&self) -> EsdtLocalRole
Returns a copy 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 EsdtLocalRole
impl Debug for EsdtLocalRole
source§impl<'a> From<&'a [u8]> for EsdtLocalRole
impl<'a> From<&'a [u8]> for EsdtLocalRole
source§impl From<u16> for EsdtLocalRole
impl From<u16> for EsdtLocalRole
source§impl PartialEq for EsdtLocalRole
impl PartialEq for EsdtLocalRole
impl Copy for EsdtLocalRole
impl Eq for EsdtLocalRole
impl StructuralPartialEq for EsdtLocalRole
Auto Trait Implementations§
impl Freeze for EsdtLocalRole
impl RefUnwindSafe for EsdtLocalRole
impl Send for EsdtLocalRole
impl Sync for EsdtLocalRole
impl Unpin for EsdtLocalRole
impl UnwindSafe for EsdtLocalRole
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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