Schemafy derives Default for structs where all fields are Option. For other structs, improve ergonomics by adding a new() function that takes the required fields as arguments and sets everything else to None.
Also hand-implement Default for Config. This avoids the need to use the awkward autogenerated Config::new() functions, and automatically sets ignition.version.
Schemafy derives
Default
for structs where all fields areOption
. For other structs, improve ergonomics by adding anew()
function that takes the required fields as arguments and sets everything else toNone
.Also hand-implement
Default
forConfig
. This avoids the need to use the awkward autogeneratedConfig::new()
functions, and automatically setsignition.version
.