pub trait InspectEnumerable<AccountId>: Inspect<AccountId> {
    type CollectionsIterator: Iterator<Item = Self::CollectionId>;
    type ItemsIterator: Iterator<Item = Self::ItemId>;
    type OwnedIterator: Iterator<Item = (Self::CollectionId, Self::ItemId)>;
    type OwnedInCollectionIterator: Iterator<Item = Self::ItemId>;

    fn collections() -> Self::CollectionsIterator;
    fn items(collection: &Self::CollectionId) -> Self::ItemsIterator;
    fn owned(who: &AccountId) -> Self::OwnedIterator;
    fn owned_in_collection(
        collection: &Self::CollectionId,
        who: &AccountId
    ) -> Self::OwnedInCollectionIterator; }
Expand description

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

Required Associated Types

The iterator type for Self::collections.

The iterator type for Self::items.

The iterator type for Self::owned.

The iterator type for Self::owned_in_collection.

Required Methods

Returns an iterator of the collections in existence.

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

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

Returns an iterator of the items of collection owned by who.