[][src]Struct manaconf::Builder

pub struct Builder { /* fields omitted */ }

Implementations

impl Builder[src]

pub fn new() -> Self[src]

Creates a new Builder for constructing a Config

pub fn add_source<S, E>(self, source: S) -> Self where
    E: Error + 'static,
    S: Source<Error = E> + 'static, 
[src]

Adds a new Source such that the sources provided keys are available from the root.

Note: The order that sources are added, are the order that they are checked for values, so you want to add your source with the highest priority first.

pub fn add_source_at_prefix<S, E, K>(self, source: S, prefix: K) -> Self where
    E: Error + 'static,
    S: Source<Error = E> + 'static,
    K: AsRef<Key>, 
[src]

Adds a new Source such that the sources provided keys are available from the supplied prefix.

Note: The order that sources are added, are the order that they are checked for values, so you want to add your source with the highest priority first.

pub fn build(self) -> Config[src]

Build the Config from the setup supplied by this builder

Auto Trait Implementations

impl !RefUnwindSafe for Builder

impl !Send for Builder

impl !Sync for Builder

impl Unpin for Builder

impl !UnwindSafe for Builder

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> From<T> for T[src]

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

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.