referrerpolicy=no-referrer-when-downgrade

Trait Transfer

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

Trait for transferring and controlling the transfer of non-fungible sets of items.

Required Methods§

Source

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

Transfer item into destination account.

Source

fn disable_transfer(item: &Self::ItemId) -> DispatchResult

Disable the item of collection transfer.

By default, this is not a supported operation.

Source

fn enable_transfer(item: &Self::ItemId) -> DispatchResult

Re-enable the item of collection transfer.

By default, this is not a supported operation.

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>