pub trait OptionsFactory<T: Value> {
// Required method
fn create(&self, name: Option<&str>) -> Result<T, ValidateOptionsResult>;
}
Expand description
Defines the behavior of an object that creates configuration Options
.
pub trait OptionsFactory<T: Value> {
// Required method
fn create(&self, name: Option<&str>) -> Result<T, ValidateOptionsResult>;
}
Defines the behavior of an object that creates configuration Options
.