pub trait ConfigLoader: Sized + DeserializeOwned {
// Provided methods
fn load(path: &Path) -> Result<Self, IacForgeError> { ... }
fn from_toml(content: &str) -> Result<Self, IacForgeError> { ... }
}Expand description
Trait for loading specs from TOML.
Eliminates identical load() methods across spec types. Provides both
file-based loading and string-based parsing (useful for tests).
Provided Methods§
Sourcefn load(path: &Path) -> Result<Self, IacForgeError>
fn load(path: &Path) -> Result<Self, IacForgeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".