pub struct AccountEsdt(/* private fields */);
Implementations§
Source§impl AccountEsdt
impl AccountEsdt
pub fn is_empty(&self) -> bool
pub fn get_by_identifier(&self, identifier: &[u8]) -> Option<&EsdtData>
pub fn set_roles(&mut self, token_identifier: Vec<u8>, roles: Vec<Vec<u8>>)
Sourcepub fn get_by_identifier_or_default(&self, identifier: &[u8]) -> EsdtData
pub fn get_by_identifier_or_default(&self, identifier: &[u8]) -> EsdtData
Will provide a clone.
pub fn get_mut_by_identifier( &mut self, identifier: &[u8], ) -> Option<&mut EsdtData>
pub fn new_from_raw_map(hash: HashMap<Vec<u8>, EsdtData>) -> Self
pub fn increase_balance( &mut self, token_identifier: Vec<u8>, nonce: u64, value: &BigUint, metadata: EsdtInstanceMetadata, )
pub fn set_esdt_balance( &mut self, token_identifier: Vec<u8>, nonce: u64, value: &BigUint, metadata: EsdtInstanceMetadata, )
pub fn get_esdt_balance(&self, token_identifier: &[u8], nonce: u64) -> BigUint
pub fn add_uris( &mut self, token_identifier: &[u8], nonce: u64, new_uris: Vec<Vec<u8>>, )
pub fn update_attributes( &mut self, token_identifier: &[u8], nonce: u64, new_attribute_bytes: Vec<u8>, )
pub fn iter(&self) -> Iter<'_, Vec<u8>, EsdtData>
pub fn set_special_role(&mut self, token_identifier: &[u8], role: &[u8])
pub fn register_and_set_roles( &mut self, token_identifier: &[u8], token_type: VMTokenType, )
Trait Implementations§
Source§impl Clone for AccountEsdt
impl Clone for AccountEsdt
Source§fn clone(&self) -> AccountEsdt
fn clone(&self) -> AccountEsdt
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 AccountEsdt
impl Debug for AccountEsdt
Source§impl Default for AccountEsdt
impl Default for AccountEsdt
Source§fn default() -> AccountEsdt
fn default() -> AccountEsdt
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccountEsdt
impl RefUnwindSafe for AccountEsdt
impl Send for AccountEsdt
impl Sync for AccountEsdt
impl Unpin for AccountEsdt
impl UnwindSafe for AccountEsdt
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