Struct wasm_deploy::file::Config
source · pub struct Config {
pub settings: Settings,
pub shell_completion_dir: Option<PathBuf>,
pub chains: Vec<ChainConfig>,
pub envs: Vec<Env>,
pub keys: Vec<SigningKey>,
}Fields§
§settings: Settings§shell_completion_dir: Option<PathBuf>§chains: Vec<ChainConfig>§envs: Vec<Env>§keys: Vec<SigningKey>Implementations§
source§impl Config
impl Config
pub fn init() -> Result<Config, DeployError>
pub fn load() -> Result<Config, DeployError>
pub fn save(&self) -> Result<(), DeployError>
pub fn get_active_env_mut(&mut self) -> Result<&mut Env, DeployError>
pub fn get_active_env(&self) -> Result<&Env, DeployError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.