pub struct ManualSource(/* private fields */);
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 !Freeze for ManualSource
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