pub struct CfaWrapper<S: ContractStateRead>(/* private fields */);Implementations§
Source§impl<S: ContractStateRead> CfaWrapper<S>
impl<S: ContractStateRead> CfaWrapper<S>
pub fn name(&self) -> Name
pub fn details(&self) -> Option<Details>
pub fn precision(&self) -> Precision
pub fn total_issued_supply(&self) -> Amount
pub fn contract_terms(&self) -> ContractTerms
pub fn allocations<'c>( &'c self, filter: impl AssignmentsFilter + 'c, ) -> impl Iterator<Item = FungibleAllocation> + 'c
Trait Implementations§
Source§impl<S: Clone + ContractStateRead> Clone for CfaWrapper<S>
impl<S: Clone + ContractStateRead> Clone for CfaWrapper<S>
Source§fn clone(&self) -> CfaWrapper<S>
fn clone(&self) -> CfaWrapper<S>
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<S: Debug + ContractStateRead> Debug for CfaWrapper<S>
impl<S: Debug + ContractStateRead> Debug for CfaWrapper<S>
Source§impl<S: ContractStateRead> From<ContractData<S>> for CfaWrapper<S>
impl<S: ContractStateRead> From<ContractData<S>> for CfaWrapper<S>
Source§fn from(v: ContractData<S>) -> Self
fn from(v: ContractData<S>) -> Self
Converts to this type from the input type.
Source§impl<S: PartialEq + ContractStateRead> PartialEq for CfaWrapper<S>
impl<S: PartialEq + ContractStateRead> PartialEq for CfaWrapper<S>
Source§impl<S: ContractStateRead> SchemaWrapper<S> for CfaWrapper<S>
impl<S: ContractStateRead> SchemaWrapper<S> for CfaWrapper<S>
fn with(data: ContractData<S>) -> Self
impl<S: Eq + ContractStateRead> Eq for CfaWrapper<S>
impl<S: ContractStateRead> StructuralPartialEq for CfaWrapper<S>
Auto Trait Implementations§
impl<S> Freeze for CfaWrapper<S>where
S: Freeze,
impl<S> RefUnwindSafe for CfaWrapper<S>where
S: RefUnwindSafe,
impl<S> Send for CfaWrapper<S>where
S: Send,
impl<S> Sync for CfaWrapper<S>where
S: Sync,
impl<S> Unpin for CfaWrapper<S>where
S: Unpin,
impl<S> UnwindSafe for CfaWrapper<S>where
S: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.