pub struct Rgb20(_);Implementations§
source§impl Rgb20
impl Rgb20
pub fn spec(&self) -> DivisibleAssetSpec
pub fn created(&self) -> Timestamp
pub fn balance(&self, filter: &impl OutpointFilter) -> u64
pub fn allocations( &self, filter: &impl OutpointFilter ) -> LargeVec<FungibleAllocation>
pub fn contract_data(&self) -> ContractData
pub fn total_issued_supply(&self) -> Amount
pub fn total_burned_supply(&self) -> Amount
pub fn total_replaced_supply(&self) -> Amount
pub fn total_supply(&self) -> Amount
Trait Implementations§
source§impl From<ContractIface> for Rgb20
impl From<ContractIface> for Rgb20
source§fn from(iface: ContractIface) -> Self
fn from(iface: ContractIface) -> Self
Converts to this type from the input type.
source§impl From<Rgb20> for ContractIface
impl From<Rgb20> for ContractIface
source§impl PartialEq<Rgb20> for Rgb20
impl PartialEq<Rgb20> for Rgb20
source§impl Wrapper for Rgb20
impl Wrapper for Rgb20
§type Inner = ContractIface
type Inner = ContractIface
Inner type wrapped by the current newtype
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
source§impl WrapperMut for Rgb20
impl WrapperMut for Rgb20
source§fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl Eq for Rgb20
impl StructuralEq for Rgb20
impl StructuralPartialEq for Rgb20
Auto Trait Implementations§
impl RefUnwindSafe for Rgb20
impl Send for Rgb20
impl Sync for Rgb20
impl Unpin for Rgb20
impl UnwindSafe for Rgb20
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.