pub trait DeriveYamlConfig {
// Required methods
fn path() -> Result<PathBuf, ConfigError>;
fn save(&self) -> Result<(), ConfigError>;
fn and_save(self) -> Result<Self, ConfigError>
where Self: Sized;
fn load() -> Result<Self, ConfigError>
where Self: Sized;
}Required Methods§
Sourcefn save(&self) -> Result<(), ConfigError>
fn save(&self) -> Result<(), ConfigError>
§Errors
Will return Err if Self::path, File::open, format::to_string, or File::write_all fails.
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.