Followed from the discussion
For some fields there are Option wrapper is used to mark that the property might not be defined by the user and therefore should get some default value. But using Option instead of raw type like bool may lead to bugs like mentioned in #342
Suggested solution
Instead of using Option for such cases use #[serde(default)] attribute as described in serde doc
Followed from the discussion
For some fields there are
Optionwrapper is used to mark that the property might not be defined by the user and therefore should get some default value. But usingOptioninstead of raw type like bool may lead to bugs like mentioned in #342Suggested solution
Instead of using
Optionfor such cases use#[serde(default)]attribute as described in serde doc