referrerpolicy=no-referrer-when-downgrade

Mutate

Trait Mutate 

pub trait Mutate<AccountId>: Inspect<AccountId> {
    // Required method
    fn set(
        asset: Self::AssetId,
        from: &AccountId,
        name: Vec<u8>,
        symbol: Vec<u8>,
        decimals: u8,
    ) -> Result<(), DispatchError>;
}

Required Methods§

fn set( asset: Self::AssetId, from: &AccountId, name: Vec<u8>, symbol: Vec<u8>, decimals: u8, ) -> Result<(), DispatchError>

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§

§

impl<Left, Right, Criterion, AssetKind, AccountId> Mutate<AccountId> for polkadot_sdk_frame::token::fungible::UnionOf<Left, Right, Criterion, AssetKind, AccountId>
where Left: Inspect<AccountId> + Inspect<AccountId> + Mutate<AccountId>, Right: Inspect<AccountId, Balance = <Left as Inspect<AccountId>>::Balance> + Inspect<AccountId> + Mutate<AccountId>, Criterion: Convert<AssetKind, Either<(), <Right as Inspect<AccountId>>::AssetId>>, AssetKind: AssetId,

§

impl<Left, Right, Criterion, AssetKind, AccountId> Mutate<AccountId> for polkadot_sdk_frame::token::fungibles::UnionOf<Left, Right, Criterion, AssetKind, AccountId>
where Left: Inspect<AccountId> + Inspect<AccountId> + Mutate<AccountId>, Right: Inspect<AccountId, Balance = <Left as Inspect<AccountId>>::Balance> + Inspect<AccountId> + Mutate<AccountId>, Criterion: Convert<AssetKind, Either<<Left as Inspect<AccountId>>::AssetId, <Right as Inspect<AccountId>>::AssetId>>, AssetKind: AssetId,