Browse Source

Update readme

master
kageru 1 year ago
parent
commit
46dc0ac622
Signed by: kageru GPG Key ID: 8282A2BEA4ADA3D2
  1. 9
      README.md

9
README.md

@ -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.

Loading…
Cancel
Save