Struct tea_sdk::vmh::env::GenesisConfig
pub struct GenesisConfig {
pub network: String,
pub contract_addresses: ContractAddresses,
pub tappstore_id: String,
pub usdt_address: String,
pub chain_id: u64,
pub mining_startup_nodes: Vec<MiningStartupItem>,
pub enclave_pcrs: Vec<(String, String)>,
}
Fields§
§network: String
§contract_addresses: ContractAddresses
§tappstore_id: String
§usdt_address: String
§chain_id: u64
§mining_startup_nodes: Vec<MiningStartupItem>
§enclave_pcrs: Vec<(String, String)>
Implementations§
Trait Implementations§
§impl Clone for GenesisConfig
impl Clone for GenesisConfig
§fn clone(&self) -> GenesisConfig
fn clone(&self) -> GenesisConfig
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 more§impl Debug for GenesisConfig
impl Debug for GenesisConfig
§impl Default for GenesisConfig
impl Default for GenesisConfig
§fn default() -> GenesisConfig
fn default() -> GenesisConfig
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for GenesisConfig
impl<'de> Deserialize<'de> for GenesisConfig
§fn deserialize<__D>(
__deserializer: __D
) -> Result<GenesisConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<GenesisConfig, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for GenesisConfig
impl Serialize for GenesisConfig
§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 RefUnwindSafe for GenesisConfig
impl Send for GenesisConfig
impl Sync for GenesisConfig
impl Unpin for GenesisConfig
impl UnwindSafe for GenesisConfig
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