Trait polkadot_sdk_frame::traits::tokens::nonfungibles::Transfer
pub trait Transfer<AccountId>: Inspect<AccountId> {
// Required method
fn transfer(
collection: &Self::CollectionId,
item: &Self::ItemId,
destination: &AccountId,
) -> Result<(), DispatchError>;
}
Expand description
Trait for providing a non-fungible sets of items which can only be transferred.
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.
Object Safety§
This trait is not object safe.