referrerpolicy=no-referrer-when-downgrade
frame_support::traits::tokens::nonfungibles_v2

Trait InspectRole

Source
pub trait InspectRole<AccountId>: Inspect<AccountId> {
    // Required methods
    fn is_issuer(collection: &Self::CollectionId, who: &AccountId) -> bool;
    fn is_admin(collection: &Self::CollectionId, who: &AccountId) -> bool;
    fn is_freezer(collection: &Self::CollectionId, who: &AccountId) -> bool;
}
Expand description

Trait for providing an interface to check the account’s role within the collection.

Required Methods§

Source

fn is_issuer(collection: &Self::CollectionId, who: &AccountId) -> bool

Returns true if who is the issuer of the collection.

Source

fn is_admin(collection: &Self::CollectionId, who: &AccountId) -> bool

Returns true if who is the admin of the collection.

Source

fn is_freezer(collection: &Self::CollectionId, who: &AccountId) -> bool

Returns true if who is the freezer of the collection.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<T: Config<I>, I: 'static> InspectRole<<T as Config>::AccountId> for Pallet<T, I>