lastfm-rs 0.5.0

A friendly Rust library for working with the Last.fm API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#![doc(hidden)]
#![macro_use]

macro_rules! add_param {
    ($f:ident, $p:ident, $t:ty) => {
        pub fn $f(&'a mut self, v: $t) -> &'a mut Self {
            self.url.query_pairs_mut().append_pair(stringify!($p), &*v.to_string());
            self
        }
    };
}