Struct tea_sdk::vmh::env::EnvSettings
pub struct EnvSettings {
pub genesis: GenesisConfig,
pub machine_owner: String,
pub tea_id: String,
pub replica_test_mode: bool,
pub apply_validator: bool,
pub test_mode: bool,
pub first_startup_init_mode: bool,
pub lastest_topup_height: u64,
pub startup_proof: Option<String>,
pub settings: HashMap<String, String>,
}
Fields§
§genesis: GenesisConfig
§machine_owner: String
§tea_id: String
§replica_test_mode: bool
§apply_validator: bool
§test_mode: bool
§first_startup_init_mode: bool
§lastest_topup_height: u64
§startup_proof: Option<String>
§settings: HashMap<String, String>
Implementations§
§impl EnvSettings
impl EnvSettings
pub fn import_settings(&mut self, value: &str) -> Result<(), Global>
Trait Implementations§
§impl Clone for EnvSettings
impl Clone for EnvSettings
§fn clone(&self) -> EnvSettings
fn clone(&self) -> EnvSettings
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 EnvSettings
impl Debug for EnvSettings
§impl Default for EnvSettings
impl Default for EnvSettings
§fn default() -> EnvSettings
fn default() -> EnvSettings
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for EnvSettings
impl<'de> Deserialize<'de> for EnvSettings
§fn deserialize<__D>(
__deserializer: __D
) -> Result<EnvSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<EnvSettings, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for EnvSettings
impl Serialize for EnvSettings
§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 EnvSettings
impl Send for EnvSettings
impl Sync for EnvSettings
impl Unpin for EnvSettings
impl UnwindSafe for EnvSettings
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