Update readme

This commit is contained in:
kageru 2020-07-24 18:34:39 +02:00
parent c1499ff9b3
commit 46dc0ac622
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -20,6 +20,15 @@ match key {
And I figured just having a small crate that has all the types and does the serde magic for you would be nice for other people as well.
Now you can simply:
```rs
let raw_response: Vec<String> = my_mpd_client.currentsong(); // <- this one is from your own code
let track: Track = mparsed::deserialize_response(raw_response.iter());
```
No more hand-written deserialization logic.
Oh, and it’s a good learning opportunity for me.
Serde seemed like a library I should learn more about.