pub struct ConfigLoader { /* private fields */ }Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn default_file(self) -> Self
pub fn default_file(self) -> Self
添加默认文件source(可选)
Sourcepub fn default_env(self) -> Self
pub fn default_env(self) -> Self
默认环境变量
Sourcepub fn build<T: DeserializeOwned>(self) -> Result<T, ConfigError>
pub fn build<T: DeserializeOwned>(self) -> Result<T, ConfigError>
构建并反序列化为目标类型
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigLoader
impl !RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl !UnwindSafe for ConfigLoader
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