pub struct Settings {
pub dev_mode: bool,
pub log_level: String,
pub test_server_duration: u64,
pub executor: Option<Executor>,
pub features: HashSet<Feature>,
pub services: HashSet<Service>,
pub coordinator: Vec<HashMap<Coordinator, CoordinatorVariant>>,
pub component: Vec<HashMap<Component, ComponentVariant>>,
pub additional: Vec<HashMap<Additional, AdditionalVariant>>,
}Expand description
Its unfortunate that we need to make all the bits public. There’s possibly a way to avoid this with serde; I haven’t figured it out yet. This is the top-level settings object
Fields§
§dev_mode: bool§log_level: String§test_server_duration: u64§executor: Option<Executor>§features: HashSet<Feature>§services: HashSet<Service>§coordinator: Vec<HashMap<Coordinator, CoordinatorVariant>>§component: Vec<HashMap<Component, ComponentVariant>>§additional: Vec<HashMap<Additional, AdditionalVariant>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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 Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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