[][src]Struct preftool_app_config::AppConfigBuilder

pub struct AppConfigBuilder { /* fields omitted */ }

Methods

impl AppConfigBuilder[src]

pub fn new<S: AsRef<str>>(name: S, logger: Option<Logger>) -> Result<Self>[src]

pub fn add_format<F: ConfigurationFileFormat + 'static>(self, format: F) -> Self[src]

pub fn with_args<T: ClapConfig + 'static>(self) -> Self[src]

pub fn configure<F>(self, f: F) -> Self where
    F: 'static + Fn(App<'a, 'b>) -> App<'a, 'b>, 
[src]

Trait Implementations

impl ConfigurationBuilder for AppConfigBuilder[src]

type Config = <ConfigBuilder as ConfigurationBuilder>::Config

Resulting configuration type.

fn add<S>(self, source: S) -> Result<Self, Error> where
    S: ConfigurationSource
[src]

Add a configuration source to the builder.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Erased for T