referrerpolicy=no-referrer-when-downgrade
frame_support::traits::tokens::nonfungible

Trait Transfer

Source
pub trait Transfer<AccountId>: Inspect<AccountId> {
    // Required method
    fn transfer(item: &Self::ItemId, destination: &AccountId) -> DispatchResult;
}
Expand description

Trait for providing a non-fungible set of items which can only be transferred.

Required Methods§

Source

fn transfer(item: &Self::ItemId, destination: &AccountId) -> DispatchResult

Transfer item into destination account.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F: Transfer<AccountId>, A: Get<<F as Inspect<AccountId>>::CollectionId>, AccountId> Transfer<AccountId> for ItemOf<F, A, AccountId>

impl<T: Config> Transfer<<T as Config>::AccountId> for Pallet<T>

impl<T: Config> Transfer<<T as Config>::AccountId> for Pallet<T>