difftreelog
doc: fix PR
in: master
2 files changed
pallets/common/src/dispatch.rsdiffbeforeafterboth717172/// Interface for working with different collections through the dispatcher.72/// Interface for working with different collections through the dispatcher.73pub trait CollectionDispatch<T: Config> {73pub trait CollectionDispatch<T: Config> {74 /// Create a collection. The collection will be created according to the value of [data.mode](CreateCollectionData::mode).74 /// Create a collection. The collection will be created according to the value of [`data.mode`](CreateCollectionData::mode).75 ///75 ///76 /// * `sender` - The user who will become the owner of the collection.76 /// * `sender` - The user who will become the owner of the collection.77 /// * `data` - Description of the created collection.77 /// * `data` - Description of the created collection.94 /// Get the collection handle for the corresponding implementation.94 /// Get the collection handle for the corresponding implementation.95 fn into_inner(self) -> CollectionHandle<T>;95 fn into_inner(self) -> CollectionHandle<T>;969697 /// Get the implementation of [CommonCollectionOperations].97 /// Get the implementation of [`CommonCollectionOperations`].98 fn as_dyn(&self) -> &dyn CommonCollectionOperations<T>;98 fn as_dyn(&self) -> &dyn CommonCollectionOperations<T>;99}99}100100pallets/common/src/lib.rsdiffbeforeafterboth161617//! # Common pallet17//! # Common pallet18//!18//!19//! The Common pallet provides an interface for common collection operations for different collection types19//! The Common pallet provides functionality for handling collections.20//! (see [CommonCollectionOperations]), as well as a generic dispatcher for these, see [dispatch] module.21//! It also provides this functionality to EVM, see [erc] and [eth] modules.22//!20//!23//! ## Overview21//! ## Overview24//!22//!25//! The Common pallet provides functionality for handling collections.23//! The Common pallet provides an interface for common collection operations for different collection types24//! (see [CommonCollectionOperations]), as well as a generic dispatcher for these, see [dispatch] module.25//! It also provides this functionality to EVM, see [erc] and [eth] modules.26//!26//!27//! The Common pallet provides functions for:27//! The Common pallet provides functions for:28//!28//!44//! metadata can be placed.44//! metadata can be placed.45//!45//!46//! **Permissions on token properties** - For each property in the token can be set permission46//! **Permissions on token properties** - For each property in the token can be set permission47//! to change, see [PropertyPermission].47//! to change, see [`PropertyPermission`].48//!48//!49//! **Collection administrator** - For a collection, you can set administrators who have the right49//! **Collection administrator** - For a collection, you can set administrators who have the right50//! to most actions on the collection.50//! to most actions on the collection.