Trait polkadot_sdk_frame::traits::tokens::nonfungibles_v2::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.
Object Safety§
This trait is not object safe.