Open skeet70 opened 2 years ago
Didn't want to make fields public so that we can force validation. Need to investigate alternatives - builder pattern might work. Might be able to make fields public if the right validation pattern is available.
Once we figure out a pattern, should probably do the same for other larger Opt
structs.
Right now you either enumerate all the fields on a struct, or use default to get only defaults. Neither of those is super useful, most likely you just want a few fields set at a time and everything else default. Making fields public would enable the normal pattern of