referrerpolicy=no-referrer-when-downgrade
pub trait Transfer<AccountId>: Inspect<AccountId> {
    // Required methods
    fn transfer(
        item: &Self::ItemId,
        destination: &AccountId,
    ) -> Result<(), DispatchError>;
    fn disable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>;
    fn enable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>;
}
Expand description

Trait for transferring and controlling the transfer of non-fungible sets of items.

Required Methods§

fn transfer( item: &Self::ItemId, destination: &AccountId, ) -> Result<(), DispatchError>

Transfer item into destination account.

fn disable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>

Disable the item of collection transfer.

By default, this is not a supported operation.

fn enable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>

Re-enable the item of collection transfer.

By default, this is not a supported operation.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<F, A, AccountId> Transfer<AccountId> for ItemOf<F, A, AccountId>
where F: Transfer<AccountId>, A: Get<<F as Inspect<AccountId>>::CollectionId>,