All errors related to JSON validation/parsing.
This enum is marked as non-exhaustive
target is not of the correct type
An arbitrary “target” where each or one of it’s elements doesn’t have the required type.
JsonError::NotOfType, only called when the
target is a multiple;
array, set, etc.
The given required field is missing from a JSON object.
A key is missing from a JSON object.
Note that this is different from
this error talks about an expected identifying key (
missing from a target, where the key has a specific “type”/name.
A more generic JSON error from
Auto Trait Implementations§
Returns the argument unchanged.
demand. Read more