pub struct ConfigLoader { /* private fields */ }Implementations§
Source§impl ConfigLoader
impl ConfigLoader
pub fn new(config_path: PathBuf) -> Self
pub fn from_env() -> Result<Self>
pub fn load() -> Result<ServicesConfig>
pub fn load_from_path(path: &Path) -> Result<ServicesConfig>
pub fn load_from_content(content: &str, path: &Path) -> Result<ServicesConfig>
pub fn validate_file(path: &Path) -> Result<()>
pub fn get_includes(&self) -> Result<Vec<String>>
pub fn list_all_includes(&self) -> Result<Vec<(String, bool)>>
pub fn base_path(&self) -> &Path
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 UnsafeUnpin 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