Trait starship::config::ModuleConfig
source · [−]pub trait ModuleConfig<'a> where
Self: Sized + Clone, {
fn from_config(_config: &'a Value) -> Option<Self> { ... }
fn load_config(&mut self, config: &'a Value) { ... }
}
Expand description
Parsable config.
Provided methods
fn from_config(_config: &'a Value) -> Option<Self>
fn from_config(_config: &'a Value) -> Option<Self>
Construct a ModuleConfig
from a toml value.
fn load_config(&mut self, config: &'a Value)
fn load_config(&mut self, config: &'a Value)
Merge self
with config from a toml table.