Struct cfg_rs::source::ManualSource
source · pub struct ManualSource(_, _);Expand description
Manually register key value to Configuration.
Implementations§
source§impl ManualSource
impl ManualSource
sourcepub fn set<K: Borrow<str>, V: Into<ConfigValue<'static>>>(
self,
key: K,
value: V
) -> Self
pub fn set<K: Borrow<str>, V: Into<ConfigValue<'static>>>( self, key: K, value: V ) -> Self
Set config into configuration by programming, or from command line arguments.
sourcepub fn finish(self) -> Result<Configuration, ConfigError>
pub fn finish(self) -> Result<Configuration, ConfigError>
Finish customized kv.
Auto Trait Implementations§
impl !RefUnwindSafe for ManualSource
impl Send for ManualSource
impl !Sync for ManualSource
impl Unpin for ManualSource
impl !UnwindSafe for ManualSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more