Trait frame_support::traits::tokens::nonfungible_v2::Transfer

source ·
pub trait Transfer<AccountId>: Inspect<AccountId> {
    // Required methods
    fn transfer(item: &Self::ItemId, destination: &AccountId) -> DispatchResult;
    fn disable_transfer(item: &Self::ItemId) -> DispatchResult;
    fn enable_transfer(item: &Self::ItemId) -> DispatchResult;
}
Expand description

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

Required Methods§

source

fn transfer(item: &Self::ItemId, destination: &AccountId) -> DispatchResult

Transfer item into destination account.

source

fn disable_transfer(item: &Self::ItemId) -> DispatchResult

Disable the item of collection transfer.

By default, this is not a supported operation.

source

fn enable_transfer(item: &Self::ItemId) -> DispatchResult

Re-enable the item of collection transfer.

By default, this is not a supported operation.

Object Safety§

This trait is not object safe.

Implementors§

source§

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