#[derive(JsonDeserialize)]
{
// Attributes available to this derive:
#[rename]
}
Expand description
Derive an implementation of the JsonDeserialize
trait.
This requires the struct
derived for implement Default
. Fields which aren’t present in
the serialization will be left to their Default
initialization. If you wish to detect if a
field was omitted, please wrap it in Option
.
As a procedural macro, this will panic causing a compile-time error on any unexpected input.