referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::token::nonfungibles

Trait Create

pub trait Create<AccountId>: Inspect<AccountId> {
    // Required method
    fn create_collection(
        collection: &Self::CollectionId,
        who: &AccountId,
        admin: &AccountId,
    ) -> Result<(), DispatchError>;
}
Expand description

Trait for providing the ability to create collections of nonfungible items.

Required Methods§

fn create_collection( collection: &Self::CollectionId, who: &AccountId, admin: &AccountId, ) -> Result<(), DispatchError>

Create a collection of nonfungible items to be owned by who and managed by admin.

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> Create<<T as Config>::AccountId> for Pallet<T, I>