We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partial
It would be useful when working with multiple "preloaded" sources, e.g.
#[derive(Config)] struct Cfg { foo: usize, bar: String, } fn main() { let cfg = Cfg::builder().preloaded(Cfg::partial().foo(42)).load(); }
Perhaps makes more sense in a more complex example
fn do_something(cli_args: Args, global_config: GlobalConfig) { let cfg = Cfg::builder() .preloaded(Cfg::partial().foo(cli_args.foo).bar(cli_args.bar)) .env() .preloaded(Cfg::partial().foo(global_config.my_app.foo).qux(global_config.global.qux)) .load()?; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be useful when working with multiple "preloaded" sources, e.g.
Perhaps makes more sense in a more complex example
The text was updated successfully, but these errors were encountered: