[][src]Struct d3_components::settings::Settings

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>>,
}

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: boollog_level: Stringtest_server_duration: u64executor: Option<Executor>features: HashSet<Feature>services: HashSet<Service>coordinator: Vec<HashMap<Coordinator, CoordinatorVariant>>component: Vec<HashMap<Component, ComponentVariant>>additional: Vec<HashMap<Additional, AdditionalVariant>>

Implementations

impl Settings[src]

Finally, we get to where we assemble the settings from all the different sources and freeze it.

pub fn new() -> Result<Self, ConfigError>[src]

Trait Implementations

impl Debug for Settings[src]

impl Default for Settings[src]

impl<'de> Deserialize<'de> for Settings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,