From 46dc0ac6229dc1dc86c7a6020614a726f0f13906 Mon Sep 17 00:00:00 2001 From: kageru Date: Fri, 24 Jul 2020 18:34:39 +0200 Subject: [PATCH] Update readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1bbf811..0425d44 100644 --- a/README.md +++ b/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 = 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.