Struct fuel_core_chain_config::config::StateConfig
source · pub struct StateConfig {
pub coins: Option<Vec<CoinConfig>>,
pub contracts: Option<Vec<ContractConfig>>,
pub messages: Option<Vec<MessageConfig>>,
pub height: Option<BlockHeight>,
}
Fields§
§coins: Option<Vec<CoinConfig>>
Spendable coins
contracts: Option<Vec<ContractConfig>>
Contract state
messages: Option<Vec<MessageConfig>>
Messages from Layer 1
height: Option<BlockHeight>
Starting block height (useful for flattened fork networks)
Implementations§
source§impl StateConfig
impl StateConfig
pub fn generate_state_config<T>(db: T) -> StorageResult<Self>where T: ChainConfigDb,
Trait Implementations§
source§impl Clone for StateConfig
impl Clone for StateConfig
source§fn clone(&self) -> StateConfig
fn clone(&self) -> StateConfig
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 StateConfig
impl Debug for StateConfig
source§impl Default for StateConfig
impl Default for StateConfig
source§fn default() -> StateConfig
fn default() -> StateConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StateConfig
impl<'de> Deserialize<'de> for StateConfig
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<StateConfig> for StateConfig
impl PartialEq<StateConfig> for StateConfig
source§fn eq(&self, other: &StateConfig) -> bool
fn eq(&self, other: &StateConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StateConfig
impl Serialize for StateConfig
impl Eq for StateConfig
impl StructuralEq for StateConfig
impl StructuralPartialEq for StateConfig
Auto Trait Implementations§
impl RefUnwindSafe for StateConfig
impl Send for StateConfig
impl Sync for StateConfig
impl Unpin for StateConfig
impl UnwindSafe for StateConfig
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more