pub enum DcdtLocalRole {
None,
Mint,
Burn,
NftCreate,
NftAddQuantity,
NftBurn,
NftAddUri,
NftUpdateAttributes,
Transfer,
}
Expand description
The VM implementation for DcdtLocalRole, 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 DcdtLocalRole
impl DcdtLocalRole
Source§impl DcdtLocalRole
impl DcdtLocalRole
pub fn iter_all() -> Iter<'static, DcdtLocalRole>
Trait Implementations§
Source§impl Clone for DcdtLocalRole
impl Clone for DcdtLocalRole
Source§fn clone(&self) -> DcdtLocalRole
fn clone(&self) -> DcdtLocalRole
Returns a duplicate 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 DcdtLocalRole
impl Debug for DcdtLocalRole
Source§impl<'a> From<&'a [u8]> for DcdtLocalRole
impl<'a> From<&'a [u8]> for DcdtLocalRole
Source§impl From<u16> for DcdtLocalRole
impl From<u16> for DcdtLocalRole
Source§impl PartialEq for DcdtLocalRole
impl PartialEq for DcdtLocalRole
impl Copy for DcdtLocalRole
impl Eq for DcdtLocalRole
impl StructuralPartialEq for DcdtLocalRole
Auto Trait Implementations§
impl Freeze for DcdtLocalRole
impl RefUnwindSafe for DcdtLocalRole
impl Send for DcdtLocalRole
impl Sync for DcdtLocalRole
impl Unpin for DcdtLocalRole
impl UnwindSafe for DcdtLocalRole
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§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