pub struct AccountDcdt(/* private fields */);
Implementations§
Source§impl AccountDcdt
impl AccountDcdt
pub fn is_empty(&self) -> bool
pub fn get_by_identifier(&self, identifier: &[u8]) -> Option<&DcdtData>
pub fn set_roles(&mut self, token_identifier: Vec<u8>, roles: Vec<Vec<u8>>)
Sourcepub fn get_by_identifier_or_default(&self, identifier: &[u8]) -> DcdtData
pub fn get_by_identifier_or_default(&self, identifier: &[u8]) -> DcdtData
Will provide a clone.
pub fn get_mut_by_identifier( &mut self, identifier: &[u8], ) -> Option<&mut DcdtData>
pub fn new_from_raw_map(hash: HashMap<Vec<u8>, DcdtData>) -> Self
pub fn increase_balance( &mut self, token_identifier: Vec<u8>, nonce: u64, value: &BigUint, metadata: DcdtInstanceMetadata, )
pub fn set_dcdt_balance( &mut self, token_identifier: Vec<u8>, nonce: u64, value: &BigUint, metadata: DcdtInstanceMetadata, )
pub fn get_dcdt_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>, DcdtData>
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 AccountDcdt
impl Clone for AccountDcdt
Source§fn clone(&self) -> AccountDcdt
fn clone(&self) -> AccountDcdt
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 AccountDcdt
impl Debug for AccountDcdt
Source§impl Default for AccountDcdt
impl Default for AccountDcdt
Source§fn default() -> AccountDcdt
fn default() -> AccountDcdt
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccountDcdt
impl RefUnwindSafe for AccountDcdt
impl Send for AccountDcdt
impl Sync for AccountDcdt
impl Unpin for AccountDcdt
impl UnwindSafe for AccountDcdt
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