buttplugio / buttplug

Rust Implementation of the Buttplug Sex Toy Control Protocol
https://buttplug.io
Other
882 stars 64 forks source link

Implement type shadowing and try_from for loading configurations from file #625

Open qdot opened 5 months ago

qdot commented 5 months ago

Just a reminder to myself to use type shadowing and try_from for doing validation of values loaded from config files.

https://github.com/serde-rs/serde/issues/642