Struct salak::SalakBuilder [−][src]
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 PropertySource
s 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
impl !RefUnwindSafe for SalakBuilder
impl Send for SalakBuilder
impl Sync for SalakBuilder
impl Unpin for SalakBuilder
impl !UnwindSafe for SalakBuilder
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,
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,