Struct unc_parameters::config::RuntimeConfig
source · pub struct RuntimeConfig {
pub fees: RuntimeFeesConfig,
pub wasm_config: Config,
pub account_creation_config: AccountCreationConfig,
}Expand description
The structure that holds the parameters of the runtime, mostly economics.
Fields§
§fees: RuntimeFeesConfigAction gas costs, storage fees, and economic constants around them.
This contains parameters that are required by the WASM runtime and the transaction runtime.
wasm_config: ConfigConfig of wasm operations, also includes wasm gas costs.
This contains all the configuration parameters that are only required by the WASM runtime.
account_creation_config: AccountCreationConfigConfig that defines rules for account creation.
Implementations§
source§impl RuntimeConfig
impl RuntimeConfig
pub fn initial_testnet_config() -> RuntimeConfig
pub fn test() -> Self
pub fn free() -> Self
pub fn storage_amount_per_byte(&self) -> Balance
Trait Implementations§
source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
source§impl From<RuntimeConfig> for RuntimeConfigView
impl From<RuntimeConfig> for RuntimeConfigView
source§fn from(config: RuntimeConfig) -> Self
fn from(config: RuntimeConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
source§fn eq(&self, other: &RuntimeConfig) -> bool
fn eq(&self, other: &RuntimeConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RuntimeConfig
impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.