v2.2.0
What's Changed
Replace typed_builder
with bon
by @jssblck in #9:
Instead of this:
let org_id = Some(1234);
let locator = StrictLocator::builder()
.fetcher(Fetcher::Git)
.package("...")
.revision("...");
let locator = match org_id {
None => locator.build(),
Some(org_id) => locator.org_id(org_id).build(),
};
Users can now do this:
let org_id = Some(1234);
let locator = StrictLocator::builder()
.fetcher(Fetcher::Git)
.package("...")
.revision("...")
.maybe_org_id(org_id)
.build();
Users can still fill the field directly when a value is known to exist:
let locator = StrictLocator::builder()
.fetcher(Fetcher::Git)
.package("...")
.revision("...")
.org_id(1234)
.build();
Additionally, error messages for partially built structs are now improved.
Full Changelog: v2.1.0...v2.2.0