[−][src]Struct preftool_app_config::AppConfigBuilder
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]
F: 'static + Fn(App<'a, 'b>) -> App<'a, 'b>,
Trait Implementations
impl ConfigurationBuilder for AppConfigBuilder
[src]
type Config = <ConfigBuilder as ConfigurationBuilder>::Config
Resulting configuration type.
fn push_provider<P: ConfigurationProvider + 'static>(self, source: P) -> Self
[src]
fn build(self) -> Result<Self::Config>
[src]
fn add<S>(self, source: S) -> Result<Self, Error> where
S: ConfigurationSource,
[src]
S: ConfigurationSource,
Add a configuration source to the builder.
Auto Trait Implementations
impl !Send for AppConfigBuilder
impl !Sync for AppConfigBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,