Trait frame_support::traits::tokens::nonfungibles::InspectEnumerable [−][src]
pub trait InspectEnumerable<AccountId>: Inspect<AccountId> { fn classes() -> Box<dyn Iterator<Item = Self::ClassId>>; fn instances(
class: &Self::ClassId
) -> Box<dyn Iterator<Item = Self::InstanceId>>; fn owned(
who: &AccountId
) -> Box<dyn Iterator<Item = (Self::ClassId, Self::InstanceId)>>; fn owned_in_class(
class: &Self::ClassId,
who: &AccountId
) -> Box<dyn Iterator<Item = Self::InstanceId>>; }
Expand description
Interface for enumerating assets in existence or owned by a given account over many collections of NFTs.
Required methods
Returns an iterator of the asset classes in existence.
Returns an iterator of the instances of an asset class
in existence.
Returns an iterator of the asset instances of all classes owned by who
.
fn owned_in_class(
class: &Self::ClassId,
who: &AccountId
) -> Box<dyn Iterator<Item = Self::InstanceId>>
fn owned_in_class(
class: &Self::ClassId,
who: &AccountId
) -> Box<dyn Iterator<Item = Self::InstanceId>>
Returns an iterator of the asset instances of class
owned by who
.