pub struct VmConfigView {Show 13 fields
pub discard_custom_sections: bool,
pub eth_implicit_accounts: bool,
pub ext_costs: ExtCostsConfigView,
pub fix_contract_loading_cost: bool,
pub global_contract_host_fns: bool,
pub grow_mem_cost: u32,
pub implicit_account_creation: bool,
pub limit_config: LimitConfig,
pub reftypes_bulk_memory: bool,
pub regular_op_cost: u32,
pub saturating_float_to_int: bool,
pub storage_get_mode: StorageGetMode,
pub vm_kind: VmKind,
}
Expand description
VmConfigView
JSON schema
{
"type": "object",
"required": [
"discard_custom_sections",
"eth_implicit_accounts",
"ext_costs",
"fix_contract_loading_cost",
"global_contract_host_fns",
"grow_mem_cost",
"implicit_account_creation",
"limit_config",
"reftypes_bulk_memory",
"regular_op_cost",
"saturating_float_to_int",
"storage_get_mode",
"vm_kind"
],
"properties": {
"discard_custom_sections": {
"description": "See [VMConfig::discard_custom_sections](crate::vm::Config::discard_custom_sections).",
"type": "boolean"
},
"eth_implicit_accounts": {
"description": "See [VMConfig::eth_implicit_accounts](crate::vm::Config::eth_implicit_accounts).",
"type": "boolean"
},
"ext_costs": {
"description": "Costs for runtime externals",
"allOf": [
{
"$ref": "#/components/schemas/ExtCostsConfigView"
}
]
},
"fix_contract_loading_cost": {
"description": "See [VMConfig::fix_contract_loading_cost](crate::vm::Config::fix_contract_loading_cost).",
"type": "boolean"
},
"global_contract_host_fns": {
"description": "See [VMConfig::global_contract_host_fns](crate::vm::Config::global_contract_host_fns).",
"type": "boolean"
},
"grow_mem_cost": {
"description": "Gas cost of a growing memory by single page.",
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"implicit_account_creation": {
"description": "See [VMConfig::implicit_account_creation](crate::vm::Config::implicit_account_creation).",
"type": "boolean"
},
"limit_config": {
"description": "Describes limits for VM and Runtime.\n\nTODO: Consider changing this to `VMLimitConfigView` to avoid dependency\non runtime.",
"allOf": [
{
"$ref": "#/components/schemas/LimitConfig"
}
]
},
"reftypes_bulk_memory": {
"description": "See [VMConfig::reftypes_bulk_memory](crate::vm::Config::reftypes_bulk_memory).",
"type": "boolean"
},
"regular_op_cost": {
"description": "Gas cost of a regular operation.",
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"saturating_float_to_int": {
"description": "See [VMConfig::saturating_float_to_int](crate::vm::Config::saturating_float_to_int).",
"type": "boolean"
},
"storage_get_mode": {
"description": "See [VMConfig::storage_get_mode](crate::vm::Config::storage_get_mode).",
"allOf": [
{
"$ref": "#/components/schemas/StorageGetMode"
}
]
},
"vm_kind": {
"description": "See [VMConfig::vm_kind](crate::vm::Config::vm_kind).",
"allOf": [
{
"$ref": "#/components/schemas/VMKind"
}
]
}
}
}
Fields§
§discard_custom_sections: bool
§eth_implicit_accounts: bool
§ext_costs: ExtCostsConfigView
Costs for runtime externals
fix_contract_loading_cost: bool
§global_contract_host_fns: bool
§grow_mem_cost: u32
Gas cost of a growing memory by single page.
implicit_account_creation: bool
§limit_config: LimitConfig
Describes limits for VM and Runtime.
TODO: Consider changing this to VMLimitConfigView
to avoid dependency
on runtime.
reftypes_bulk_memory: bool
§regular_op_cost: u32
Gas cost of a regular operation.
saturating_float_to_int: bool
§storage_get_mode: StorageGetMode
§vm_kind: VmKind
See VMConfig::vm_kind.
Trait Implementations§
Source§impl Clone for VmConfigView
impl Clone for VmConfigView
Source§fn clone(&self) -> VmConfigView
fn clone(&self) -> VmConfigView
Returns a duplicate 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 VmConfigView
impl Debug for VmConfigView
Source§impl<'de> Deserialize<'de> for VmConfigView
impl<'de> Deserialize<'de> for VmConfigView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&VmConfigView> for VmConfigView
impl From<&VmConfigView> for VmConfigView
Source§fn from(value: &VmConfigView) -> Self
fn from(value: &VmConfigView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VmConfigView
impl RefUnwindSafe for VmConfigView
impl Send for VmConfigView
impl Sync for VmConfigView
impl Unpin for VmConfigView
impl UnwindSafe for VmConfigView
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