luleyleo / untis-rs

Rust library to access the webuntis jsonrpc
MIT License
5 stars 6 forks source link

Implement common traits for structures #2

Closed Luro02 closed 5 years ago

Luro02 commented 5 years ago

https://rust-lang-nursery.github.io/api-guidelines/interoperability.html

You can derive most of them (Serialize and Deserialize are from Serde):

#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default, Serialize, Deserialize)]

Only Display has to be implemented manually

luleyleo commented 5 years ago

Yes, this would definitely make sense

luleyleo commented 5 years ago

Thanks!