You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// the custom variantCustom(Box<dynFn() -> Result<serde_json::Value, twelf::Error>>)
which would let us use this layer like this
let fetch_from_api = || {let res= reqwest::blocking::get(« http://myapi.com »).unwrap();
res
};Conf::with_layers(&[Layer::Env(None),Layer::Custom(Box::new(&fetch_from_api)]).unwrap();
the main goal is to let users fetch part of the configuration from whatever they want and not only from provided and supporter layers
The text was updated successfully, but these errors were encountered:
Add that kind of variant in Layer.
the main goal is to let users fetch part of the configuration from whatever they want and not only from provided and supporter layers
The text was updated successfully, but these errors were encountered: