pub struct ConfigLoader;Expand description
Configuration loader - provides static methods for loading configurations
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn load_from_path(path: &Path) -> Result<SantaConfig>
pub fn load_from_path(path: &Path) -> Result<SantaConfig>
Load configuration from a file path
Sourcepub fn load_from_str(contents: &str) -> Result<SantaConfig>
pub fn load_from_str(contents: &str) -> Result<SantaConfig>
Load configuration from a string
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