pub fn lyrics<'a, S>(&self, artist: S, title: S) -> Result<Option<Lyrics>>
    where
        S: Into<Option<&'a str>>,
    {
        let args = Query::with("artist", artist.into())
            .arg("title", title.into())
            .build();
        let res = self.get("getLyrics", args)?;

        if res.get("value").is_some() {
            Ok(Some(serde_json::from_value(res)?))
        } else {
            Ok(None)
        }
    }
/// Searches for lyrics matching the artist and title. Returns `None` if no
/// lyrics are found.
Searches for lyrics matching the artist and title. Returns `None` if no
lyrics are found.
Searches for lyrics matching the artist and title . Returns ` None ` if no lyrics are found .
pub fn lyrics<'a, S>(&self, artist: S, title: S) -> Result<Option<Lyrics>>
    where
        S: Into<Option<&'a str>>,
    {
        let args = Query::with("artist", artist.into())
            .arg("title", title.into())
            .build();
        let res = self.get("getLyrics", args)?;
        if res.get("value").is_some() {
            Ok(Some(serde_json::from_value(res)?))
        } else {
            Ok(None)
        }
    }
pub fn lyrics < ' a , S > ( & self , artist : S , title : S ) -> Result < Option < Lyrics > > where S : Into < Option < & ' a str > > , { let args = Query :: with ( " " , artist . into ( ) ) . arg ( " " , title . into ( ) ) . build ( ) ; let res = self . get ( " " , args ) ? ; if res . get ( " " ) . is_some ( ) { Ok ( Some ( serde_json :: from_value ( res ) ? ) ) } else { Ok ( None ) } }
Searches for lyrics matching the artist and title.
Searches for lyrics matching the artist and title .
&self
artist
S
title
S
&self
artist
S
title
S