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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.