macro_rules! impl_serde_for_bitflags {
($name:ident) => { ... };
}
Expand description
Implements Serialize
and Deserialize
for a bitflags!
generated structure.
Note that impl_serde_for_bitflags
requires the flag type to
implement Serialize
and Deserialize
.
All primitive integer types satisfy these requirements.
See the bitflags
shim for a full example.