Struct salak::SalakBuilder[][src]

pub struct SalakBuilder { /* fields omitted */ }

Salak builder.

Implementations

impl SalakBuilder[src]

pub fn with_default_args(self, param: SysArgsParam) -> Self[src]

This is supported on crate features enable_clap or enable_pico only.

Use default command line arguments parser. Please use macro auto_read_sys_args_param! to generate SysArgsParam.

pub fn with_custom_args(self, args: Vec<(String, Property)>) -> Self[src]

Use custom command line arguments parser. Users should provide a parser to produce [Vec<(String, Property)>].

pub fn add_default_source(self, source: Box<dyn PropertySource>) -> Self[src]

Add default source

pub fn disable_placeholder(self) -> Self[src]

Disable placeholder parsing.

pub fn disable_default_registry(self) -> Self[src]

Disable register default property sources. Users should organize PropertySources themselves.

pub fn add_default<T: DefaultSourceFromEnvironment>(self) -> Self[src]

This is supported on crate feature enable_derive only.

Add default properties to Environment

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

Build a Salak environment.

Trait Implementations

impl Default for SalakBuilder[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> 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.

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