Trait starship::config::ModuleConfig
source · pub trait ModuleConfig<'a, E>where
Self: Default,
E: SerdeError,{
// Required method
fn from_config<V: Into<ValueRef<'a>>>(config: V) -> Result<Self, E>;
// Provided methods
fn load<V: Into<ValueRef<'a>>>(config: V) -> Self { ... }
fn try_load<V: Into<ValueRef<'a>>>(config: Option<V>) -> Self { ... }
}
Expand description
Root config of a module.
Required Methods§
sourcefn from_config<V: Into<ValueRef<'a>>>(config: V) -> Result<Self, E>
fn from_config<V: Into<ValueRef<'a>>>(config: V) -> Result<Self, E>
Construct a ModuleConfig
from a toml value.
Provided Methods§
Object Safety§
This trait is not object safe.