pub struct RuntimeConfigView {
pub account_creation_config: AccountCreationConfigView,
pub congestion_control_config: CongestionControlConfigView,
pub storage_amount_per_byte: String,
pub transaction_costs: RuntimeFeesConfigView,
pub wasm_config: VmConfigView,
pub witness_config: WitnessConfigView,
}Expand description
View that preserves JSON format of the runtime config.
JSON schema
{
"description": "View that preserves JSON format of the runtime config.",
"type": "object",
"required": [
"account_creation_config",
"congestion_control_config",
"storage_amount_per_byte",
"transaction_costs",
"wasm_config",
"witness_config"
],
"properties": {
"account_creation_config": {
"description": "Config that defines rules for account creation.",
"allOf": [
{
"$ref": "#/components/schemas/AccountCreationConfigView"
}
]
},
"congestion_control_config": {
"description": "The configuration for congestion control.",
"allOf": [
{
"$ref": "#/components/schemas/CongestionControlConfigView"
}
]
},
"storage_amount_per_byte": {
"description": "Amount of yN per byte required to have on the account. See\n <https://nomicon.io/Economics/Economic#state-stake> for details.",
"type": "string"
},
"transaction_costs": {
"description": "Costs of different actions that need to be performed when sending and\n processing transaction and receipts.",
"allOf": [
{
"$ref": "#/components/schemas/RuntimeFeesConfigView"
}
]
},
"wasm_config": {
"description": "Config of wasm operations.",
"allOf": [
{
"$ref": "#/components/schemas/VMConfigView"
}
]
},
"witness_config": {
"description": "Configuration specific to ChunkStateWitness.",
"allOf": [
{
"$ref": "#/components/schemas/WitnessConfigView"
}
]
}
}
}Fields§
§account_creation_config: AccountCreationConfigViewConfig that defines rules for account creation.
congestion_control_config: CongestionControlConfigViewThe configuration for congestion control.
storage_amount_per_byte: StringAmount of yN per byte required to have on the account. See https://nomicon.io/Economics/Economic#state-stake for details.
transaction_costs: RuntimeFeesConfigViewCosts of different actions that need to be performed when sending and processing transaction and receipts.
wasm_config: VmConfigViewConfig of wasm operations.
witness_config: WitnessConfigViewConfiguration specific to ChunkStateWitness.
Trait Implementations§
Source§impl Clone for RuntimeConfigView
impl Clone for RuntimeConfigView
Source§fn clone(&self) -> RuntimeConfigView
fn clone(&self) -> RuntimeConfigView
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeConfigView
impl Debug for RuntimeConfigView
Source§impl<'de> Deserialize<'de> for RuntimeConfigView
impl<'de> Deserialize<'de> for RuntimeConfigView
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RuntimeConfigView> for RuntimeConfigView
impl From<&RuntimeConfigView> for RuntimeConfigView
Source§fn from(value: &RuntimeConfigView) -> RuntimeConfigView
fn from(value: &RuntimeConfigView) -> RuntimeConfigView
Converts to this type from the input type.
Source§impl Serialize for RuntimeConfigView
impl Serialize for RuntimeConfigView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfigView
impl RefUnwindSafe for RuntimeConfigView
impl Send for RuntimeConfigView
impl Sync for RuntimeConfigView
impl Unpin for RuntimeConfigView
impl UnwindSafe for RuntimeConfigView
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