Trait frame_support::traits::tokens::nonfungibles_v2::Create
source · pub trait Create<AccountId, CollectionConfig>: Inspect<AccountId> {
// Required method
fn create_collection(
who: &AccountId,
admin: &AccountId,
config: &CollectionConfig
) -> Result<Self::CollectionId, DispatchError>;
}
Expand description
Trait for providing the ability to create collections of nonfungible items.
Required Methods§
sourcefn create_collection(
who: &AccountId,
admin: &AccountId,
config: &CollectionConfig
) -> Result<Self::CollectionId, DispatchError>
fn create_collection( who: &AccountId, admin: &AccountId, config: &CollectionConfig ) -> Result<Self::CollectionId, DispatchError>
Create a collection
of nonfungible items to be owned by who
and managed by admin
.