Trait Transfer
pub trait Transfer<AccountId>: Inspect<AccountId> {
    // Required method
    fn transfer(
        collection: &Self::CollectionId,
        item: &Self::ItemId,
        destination: &AccountId,
    ) -> Result<(), DispatchError>;
    // Provided methods
    fn disable_transfer(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId,
    ) -> Result<(), DispatchError> { ... }
    fn enable_transfer(
        _collection: &Self::CollectionId,
        _item: &Self::ItemId,
    ) -> Result<(), DispatchError> { ... }
}Expand description
Trait for transferring non-fungible sets of items.
Required Methods§
fn transfer(
    collection: &Self::CollectionId,
    item: &Self::ItemId,
    destination: &AccountId,
) -> Result<(), DispatchError>
fn transfer( collection: &Self::CollectionId, item: &Self::ItemId, destination: &AccountId, ) -> Result<(), DispatchError>
Transfer item of collection into destination account.
Provided Methods§
fn disable_transfer(
    _collection: &Self::CollectionId,
    _item: &Self::ItemId,
) -> Result<(), DispatchError>
fn disable_transfer( _collection: &Self::CollectionId, _item: &Self::ItemId, ) -> Result<(), DispatchError>
Disable the item of collection transfer.
By default, this is not a supported operation.
fn enable_transfer(
    _collection: &Self::CollectionId,
    _item: &Self::ItemId,
) -> Result<(), DispatchError>
fn enable_transfer( _collection: &Self::CollectionId, _item: &Self::ItemId, ) -> Result<(), DispatchError>
Re-enable the item of collection transfer.
By default, this is not a supported operation.
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.