Struct fuel_chain_config::config::ChainConfig
source · pub struct ChainConfig {
pub chain_name: String,
pub block_production: BlockProduction,
pub block_gas_limit: u64,
pub initial_state: Option<StateConfig>,
pub transaction_parameters: ConsensusParameters,
}
Fields§
§chain_name: String
§block_production: BlockProduction
§block_gas_limit: u64
§initial_state: Option<StateConfig>
§transaction_parameters: ConsensusParameters
Implementations§
source§impl ChainConfig
impl ChainConfig
pub const BASE_ASSET: AssetId = _
pub fn local_testnet() -> Self
Trait Implementations§
source§impl Clone for ChainConfig
impl Clone for ChainConfig
source§fn clone(&self) -> ChainConfig
fn clone(&self) -> ChainConfig
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 ChainConfig
impl Debug for ChainConfig
source§impl Default for ChainConfig
impl Default for ChainConfig
source§impl<'de> Deserialize<'de> for ChainConfig
impl<'de> Deserialize<'de> for ChainConfig
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 FromStr for ChainConfig
impl FromStr for ChainConfig
source§impl GenesisCommitment for ChainConfig
impl GenesisCommitment for ChainConfig
source§impl PartialEq<ChainConfig> for ChainConfig
impl PartialEq<ChainConfig> for ChainConfig
source§fn eq(&self, other: &ChainConfig) -> bool
fn eq(&self, other: &ChainConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.