Trait frame_support::traits::tokens::nonfungible::InspectEnumerable[][src]

pub trait InspectEnumerable<AccountId>: Inspect<AccountId> {
    fn instances() -> Box<dyn Iterator<Item = Self::InstanceId>>;
fn owned(who: &AccountId) -> Box<dyn Iterator<Item = Self::InstanceId>>; }
Expand description

Interface for enumerating assets in existence or owned by a given account over a collection of NFTs.

Required methods

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.

Implementors