Struct frame_support::traits::tokens::nonfungible::ItemOf [−][src]
Expand description
Convert a fungibles trait implementation into a fungible trait implementation by identifying
a single item.
Trait Implementations
type InstanceId = <F as Inspect<AccountId>>::InstanceId
type InstanceId = <F as Inspect<AccountId>>::InstanceIdType for identifying an asset instance.
Returns the owner of asset instance, or None if the asset doesn’t exist or has no
owner. Read more
Returns the attribute value of instance corresponding to key. Read more
Returns the strongly-typed attribute value of instance corresponding to key. Read more
Returns true if the asset instance may be transferred. Read more
impl<F: InspectEnumerable<AccountId>, A: Get<<F as Inspect<AccountId>>::ClassId>, AccountId> InspectEnumerable<AccountId> for ItemOf<F, A, AccountId>
impl<F: InspectEnumerable<AccountId>, A: Get<<F as Inspect<AccountId>>::ClassId>, AccountId> InspectEnumerable<AccountId> for ItemOf<F, A, AccountId>Mint some asset instance to be owned by who. Read more
Burn some asset instance. Read more
Set attribute value of asset instance’s key. Read more
fn set_typed_attribute<K: Encode, V: Encode>(
instance: &Self::InstanceId,
key: &K,
value: &V
) -> DispatchResult
fn set_typed_attribute<K: Encode, V: Encode>(
instance: &Self::InstanceId,
key: &K,
value: &V
) -> DispatchResultAttempt to set the strongly-typed attribute value of instance’s key. Read more
Auto Trait Implementations
impl<F, A, AccountId> RefUnwindSafe for ItemOf<F, A, AccountId> where
A: RefUnwindSafe,
AccountId: RefUnwindSafe,
F: RefUnwindSafe, impl<F, A, AccountId> UnwindSafe for ItemOf<F, A, AccountId> where
A: UnwindSafe,
AccountId: UnwindSafe,
F: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> V