pub trait ArgumentsFactory<AssetKind, Beneficiary> {
// Required methods
fn create_asset_kind(seed: u32) -> AssetKind;
fn create_beneficiary(seed: [u8; 32]) -> Beneficiary;
}
Expand description
Trait describing factory functions for dispatchables’ parameters.
Required Methods§
sourcefn create_asset_kind(seed: u32) -> AssetKind
fn create_asset_kind(seed: u32) -> AssetKind
Factory function for an asset kind.
sourcefn create_beneficiary(seed: [u8; 32]) -> Beneficiary
fn create_beneficiary(seed: [u8; 32]) -> Beneficiary
Factory function for a beneficiary.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<AssetKind, Beneficiary> ArgumentsFactory<AssetKind, Beneficiary> for ()where
AssetKind: FromEntropy,
Beneficiary: FromEntropy,
impl<AssetKind, Beneficiary> ArgumentsFactory<AssetKind, Beneficiary> for ()where
AssetKind: FromEntropy,
Beneficiary: FromEntropy,
Implementation that expects the parameters implement the [FromEntropy
] trait.