OpenLEADR / openleadr-rs

OpenADR 3.0 VTN and VEN implementation in Rust
Other
12 stars 4 forks source link

Integrate currencies #54

Closed pohlm01 closed 1 week ago

pohlm01 commented 3 weeks ago

Add support for currencies in the wire crate. It would be nice to have a complete enum of currencies, possibly through a crate, but it might be enough (for now) to just store the currency as a string. To my knowledge, the server does not care about the currency anyway. It might be nice for the client to have a proper enum, though.

https://github.com/OpenLEADR/openleadr-rs/blob/54f7516489f578d0691235b0b8d9d082e53e8919/openadr-wire/src/event.rs#L210-L215

pohlm01 commented 2 weeks ago

The ISO does not seem to change very often. Maybe it's worth maintaining the list manually. This seems to be the source of the official standard. I assume we need to include only the current currencies but not the historic ones.