pub trait InspectEnumerable<AccountId>: Inspect<AccountId> {
    type ItemsIterator: Iterator<Item = Self::ItemId>;
    type OwnedIterator: Iterator<Item = Self::ItemId>;

    // Required methods
    fn items() -> Self::ItemsIterator;
    fn owned(who: &AccountId) -> Self::OwnedIterator;
}
Expand description

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

Required Associated Types§

source

type ItemsIterator: Iterator<Item = Self::ItemId>

The iterator type for Self::items.

source

type OwnedIterator: Iterator<Item = Self::ItemId>

The iterator type for Self::owned.

Required Methods§

source

fn items() -> Self::ItemsIterator

Returns an iterator of the items within a collection in existence.

source

fn owned(who: &AccountId) -> Self::OwnedIterator

Returns an iterator of the items of all collections owned by who.

Implementors§

source§

impl<F: InspectEnumerable<AccountId>, A: Get<<F as Inspect<AccountId>>::CollectionId>, AccountId> InspectEnumerable<AccountId> for ItemOf<F, A, AccountId>