pub struct MergedTokenInstances<M: ManagedTypeApi> { /* private fields */ }
Implementations§
Source§impl<M: ManagedTypeApi> MergedTokenInstances<M>
impl<M: ManagedTypeApi> MergedTokenInstances<M>
pub fn new() -> Self
pub fn new_from_instances(instances: InstanceArray<M>) -> Self
pub fn decode_from_first_uri(uris: &ManagedVec<M, ManagedBuffer<M>>) -> Self
pub fn get_instances(&self) -> &InstanceArray<M>
pub fn add_or_update_instance(&mut self, new_instance: EsdtTokenPayment<M>)
pub fn merge_with_other(&mut self, other: Self)
pub fn deduct_balance_for_instance( &mut self, tokens_to_deduct: &EsdtTokenPayment<M>, )
pub fn into_instances(self) -> InstanceArray<M>
Trait Implementations§
Source§impl<M: Clone + ManagedTypeApi> Clone for MergedTokenInstances<M>
impl<M: Clone + ManagedTypeApi> Clone for MergedTokenInstances<M>
Source§fn clone(&self) -> MergedTokenInstances<M>
fn clone(&self) -> MergedTokenInstances<M>
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<M: Debug + ManagedTypeApi> Debug for MergedTokenInstances<M>
impl<M: Debug + ManagedTypeApi> Debug for MergedTokenInstances<M>
Source§impl<M: ManagedTypeApi> Default for MergedTokenInstances<M>
impl<M: ManagedTypeApi> Default for MergedTokenInstances<M>
Source§impl<M: PartialEq + ManagedTypeApi> PartialEq for MergedTokenInstances<M>
impl<M: PartialEq + ManagedTypeApi> PartialEq for MergedTokenInstances<M>
impl<M: Eq + ManagedTypeApi> Eq for MergedTokenInstances<M>
impl<M: ManagedTypeApi> StructuralPartialEq for MergedTokenInstances<M>
Auto Trait Implementations§
impl<M> Freeze for MergedTokenInstances<M>where
<M as HandleTypeInfo>::BigIntHandle: Freeze,
<M as HandleTypeInfo>::ManagedBufferHandle: Freeze,
impl<M> RefUnwindSafe for MergedTokenInstances<M>where
<M as HandleTypeInfo>::BigIntHandle: RefUnwindSafe,
<M as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
M: RefUnwindSafe,
impl<M> Send for MergedTokenInstances<M>where
<M as HandleTypeInfo>::BigIntHandle: Send,
<M as HandleTypeInfo>::ManagedBufferHandle: Send,
M: Send,
impl<M> Sync for MergedTokenInstances<M>where
<M as HandleTypeInfo>::BigIntHandle: Sync,
<M as HandleTypeInfo>::ManagedBufferHandle: Sync,
M: Sync,
impl<M> Unpin for MergedTokenInstances<M>where
<M as HandleTypeInfo>::BigIntHandle: Unpin,
<M as HandleTypeInfo>::ManagedBufferHandle: Unpin,
M: Unpin,
impl<M> UnwindSafe for MergedTokenInstances<M>where
<M as HandleTypeInfo>::BigIntHandle: UnwindSafe,
<M as HandleTypeInfo>::ManagedBufferHandle: UnwindSafe,
M: UnwindSafe,
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