pub struct GasSchedule {
pub builtin_cost: BuiltInCost,
pub metachain_system_scs_cost: MetaChainSystemSCsCost,
pub base_operation_cost: BaseOperationCost,
pub base_ops_api_cost: BaseOpsAPICost,
pub eth_api_cost: EthAPICost,
pub big_int_api_cost: BigIntAPICost,
pub crypto_api_cost: CryptoAPICost,
pub managed_buffer_api_cost: ManagedBufferAPICost,
pub big_float_api_cost: BigFloatAPICost,
pub wasm_opcode_cost: OpcodeCost,
pub max_per_transaction: MaxPerTransaction,
pub dynamic_storage_load: DynamicStorageLoad,
}
Fields§
§builtin_cost: BuiltInCost
§metachain_system_scs_cost: MetaChainSystemSCsCost
§base_operation_cost: BaseOperationCost
§base_ops_api_cost: BaseOpsAPICost
§eth_api_cost: EthAPICost
§big_int_api_cost: BigIntAPICost
§crypto_api_cost: CryptoAPICost
§managed_buffer_api_cost: ManagedBufferAPICost
§big_float_api_cost: BigFloatAPICost
§wasm_opcode_cost: OpcodeCost
§max_per_transaction: MaxPerTransaction
§dynamic_storage_load: DynamicStorageLoad
Implementations§
Source§impl GasSchedule
impl GasSchedule
pub fn from_toml_str(content: &str) -> Result<Self, Error>
Sourcepub const fn zeroed() -> GasSchedule
pub const fn zeroed() -> GasSchedule
TODO: safer to replace with auto-generated zero const initializer
Trait Implementations§
Source§impl Clone for GasSchedule
impl Clone for GasSchedule
Source§fn clone(&self) -> GasSchedule
fn clone(&self) -> GasSchedule
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 GasSchedule
impl Debug for GasSchedule
Source§impl Default for GasSchedule
impl Default for GasSchedule
Source§fn default() -> GasSchedule
fn default() -> GasSchedule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GasSchedulewhere
GasSchedule: Default,
impl<'de> Deserialize<'de> for GasSchedulewhere
GasSchedule: Default,
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 PartialEq for GasSchedule
impl PartialEq for GasSchedule
Source§impl Serialize for GasSchedule
impl Serialize for GasSchedule
impl StructuralPartialEq for GasSchedule
Auto Trait Implementations§
impl Freeze for GasSchedule
impl RefUnwindSafe for GasSchedule
impl Send for GasSchedule
impl Sync for GasSchedule
impl Unpin for GasSchedule
impl UnwindSafe for GasSchedule
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more