pub fn compose(configs: Vec<Configuration>) -> Result<Configuration, Error>
Expand description

Creates a combined Configuration data structure from multiple Configuration structs. All Configuration structs must be the same version.

Returns a Result<Configuration, Error> with a single Configuration struct, or if the versions across all Configurations do not match, a ConfigVersionMismatched error.

Examples

let mut config_vec: Vec<Configuration> = Vec::new();
let config = compose(config_vec)?;