[−][src]Struct manaconf::Builder
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]
E: Error + 'static,
S: Source<Error = E> + 'static,
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]
E: Error + 'static,
S: Source<Error = E> + 'static,
K: AsRef<Key>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,