Trait polkadot_sdk_frame::traits::tokens::nonfungible_v2::Transfer
pub trait Transfer<AccountId>: Inspect<AccountId> {
// Required methods
fn transfer(
item: &Self::ItemId,
destination: &AccountId,
) -> Result<(), DispatchError>;
fn disable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>;
fn enable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>;
}
Expand description
Trait for transferring and controlling the transfer of non-fungible sets of items.
Required Methods§
fn transfer(
item: &Self::ItemId,
destination: &AccountId,
) -> Result<(), DispatchError>
fn transfer( item: &Self::ItemId, destination: &AccountId, ) -> Result<(), DispatchError>
Transfer item
into destination
account.
fn disable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>
fn disable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>
Disable the item
of collection
transfer.
By default, this is not a supported operation.
fn enable_transfer(item: &Self::ItemId) -> Result<(), DispatchError>
fn enable_transfer(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.