Layered configuration (Defaults -> TOML/JSON -> Env -> Workers Binding), SchemaNode Fail-Fast validation, and Secret[T] redaction for unmbt/ciallo
pub(all) suberror ConfigError {
ParseError(source~ : String, message~ : String)
ValidationFailed(issues~ : Array[ValidationIssue])
DecodeFailed(String)
} derive(Eq, Debug)fn ConfigLoader::with_env_lookup(self : ConfigLoader, keys : Array[String], lookup : (StringView) -> String?, prefix? : String) -> ConfigLoaderfn ConfigLoader::with_env_vars(self : ConfigLoader, vars : Map[String, String], prefix? : String) -> ConfigLoaderfn ConfigLoader::with_json(self : ConfigLoader, json_text : StringView) -> ConfigLoader raise ConfigErrorfn ConfigLoader::with_toml(self : ConfigLoader, toml_text : StringView) -> ConfigLoader raise ConfigErrorpub struct Secret[T] {
value : T
}Install
Download zipLayered configuration (Defaults -> TOML/JSON -> Env -> Workers Binding), SchemaNode Fail-Fast validation, and Secret[T] redaction for unmbt/ciallo