Trait Create
pub trait Create<AccountId, CollectionConfig>: Inspect<AccountId> {
    // Required methods
    fn create_collection(
        who: &AccountId,
        admin: &AccountId,
        config: &CollectionConfig,
    ) -> Result<Self::CollectionId, DispatchError>;
    fn create_collection_with_id(
        collection: Self::CollectionId,
        who: &AccountId,
        admin: &AccountId,
        config: &CollectionConfig,
    ) -> Result<(), DispatchError>;
}Expand description
Trait for providing the ability to create collections of nonfungible items.
Required Methods§
fn 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.
fn create_collection_with_id( collection: Self::CollectionId, who: &AccountId, admin: &AccountId, config: &CollectionConfig, ) -> Result<(), DispatchError>
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.