Trait confgr_core::FromFile
source · pub trait FromFile: Sized {
// Required methods
fn from_file() -> Result<Self, ConfgrError>;
fn check_file() -> Result<(), ConfgrError>;
fn get_file_path() -> Option<String>;
}Expand description
Deserializes a configuration layer from a file.
Required Methods§
fn from_file() -> Result<Self, ConfgrError>
fn check_file() -> Result<(), ConfgrError>
fn get_file_path() -> Option<String>
Object Safety§
This trait is not object safe.