Trait frame_support::traits::tokens::nonfungible_v2::InspectEnumerable
source · 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§
sourcetype ItemsIterator: Iterator<Item = Self::ItemId>
type ItemsIterator: Iterator<Item = Self::ItemId>
The iterator type for Self::items
.
sourcetype OwnedIterator: Iterator<Item = Self::ItemId>
type OwnedIterator: Iterator<Item = Self::ItemId>
The iterator type for Self::owned
.
Required Methods§
sourcefn items() -> Self::ItemsIterator
fn items() -> Self::ItemsIterator
Returns an iterator of the items within a collection
in existence.
sourcefn owned(who: &AccountId) -> Self::OwnedIterator
fn owned(who: &AccountId) -> Self::OwnedIterator
Returns an iterator of the items of all collections owned by who
.