JSON files - missing fields
-
How to deal with fields that are in our
struct
but are missing from the JSON? -
Return
Result<Error>
and handle it or let itpanic!
. -
Set a default value.
-
Make the value optional with
Option
.
How to deal with fields that are in our struct
but are missing from the JSON?
Return Result<Error>
and handle it or let it panic!
.
Set a default value.
Make the value optional with Option
.