Update readme
This commit is contained in:
parent
c1499ff9b3
commit
46dc0ac622
|
@ -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…
Reference in New Issue
Block a user