4 releases (2 breaking)
|0.3.0||Jun 17, 2022|
|0.2.0||May 30, 2022|
|0.1.1||Apr 5, 2022|
|0.1.0||Apr 4, 2022|
#2898 in Rust patterns
31 downloads per month
Used in 2 crates
boulder - like a builder but heavier
This provides two main traits and associated derive macros:
Buildable, which lets you set complex default values, and then customise only the fields of interest for a given instance.
Generatablewhich lets you set default sequences for each field, and then override only the particular sequences of interest.
These traits pass-through
the sense deriving
T automatically gives you default generators and builders for
all of these simple wrappers.
If you enable the
persian-rug feature, you get two new traits:
BuildableWithPersianRug, which lets you build instances which belong to a
GeneratableWithPersianRug, which lets you generate instances which belong to a
These traits pass-through all the same all the same wrappers as the
base traits, but additionally