pub struct EsdtObject {
pub token_identifier: Option<BytesValue>,
pub instances: Vec<EsdtInstance>,
pub last_nonce: Option<U64Value>,
pub roles: Vec<String>,
pub frozen: Option<U64Value>,
}
Fields§
§token_identifier: Option<BytesValue>
§instances: Vec<EsdtInstance>
§last_nonce: Option<U64Value>
§roles: Vec<String>
§frozen: Option<U64Value>
Implementations§
Source§impl EsdtObject
impl EsdtObject
pub fn is_short_form(&self) -> bool
pub fn set_balance<N, A>(&mut self, token_nonce_expr: N, amount_expr: A)
pub fn set_token_attributes<N, T>( &mut self, token_nonce_expr: N, attributes_expr: T, )
pub fn set_token_all_properties<N, V, T, A>( &mut self, nonce_expr: N, balance_expr: V, opt_attributes_expr: Option<T>, royalties_expr: N, creator_expr: Option<A>, hash_expr: Option<T>, uris_expr: Vec<T>, )
pub fn set_last_nonce<N>(&mut self, last_nonce_expr: N)
pub fn set_roles(&mut self, roles: Vec<String>)
pub fn get_or_insert_instance_for_nonce<N>( &mut self, token_nonce_expr: N, ) -> &mut EsdtInstance
Trait Implementations§
Source§impl Clone for EsdtObject
impl Clone for EsdtObject
Source§fn clone(&self) -> EsdtObject
fn clone(&self) -> EsdtObject
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 EsdtObject
impl Debug for EsdtObject
Source§impl Default for EsdtObject
impl Default for EsdtObject
Source§fn default() -> EsdtObject
fn default() -> EsdtObject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EsdtObject
impl RefUnwindSafe for EsdtObject
impl Send for EsdtObject
impl Sync for EsdtObject
impl Unpin for EsdtObject
impl UnwindSafe for EsdtObject
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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