The Reaction type needs to ensure that the `char` stored for its value meets certain requirements -- via its `new` constructor. To ensure Reaction is always constructed correctly, the `pub` accessor is removed, and the Deserialize implementation is implemented by hand -- as opposed to using derive. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||