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