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§
sourcefn transfer(item: &Self::ItemId, destination: &AccountId) -> DispatchResult
fn transfer(item: &Self::ItemId, destination: &AccountId) -> DispatchResult
Transfer item
into destination
account.
sourcefn disable_transfer(item: &Self::ItemId) -> DispatchResult
fn disable_transfer(item: &Self::ItemId) -> DispatchResult
Disable the item
of collection
transfer.
By default, this is not a supported operation.
sourcefn enable_transfer(item: &Self::ItemId) -> DispatchResult
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.