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.
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.
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.