pub fn similar<B, U>(
        &self,
        client: &Client,
        count: U,
        include_not_present: B,
    ) -> Result<Vec<Artist>>
    where
        B: Into<Option<bool>>,
        U: Into<Option<usize>>,
    {
        let args = Query::with("id", self.id)
            .arg("count", count.into())
            .arg("includeNotPresent", include_not_present.into())
            .build();
        let res = serde_json::from_value::<ArtistInfo>(client.get("getArtistInfo", args)?)?;
        Ok(res.similar_artists)
    }
/// Returns a number of random artists similar to this one.
///
/// last.fm suggests a number of similar artists to the one the method is
/// called on. Optionally takes a `count` to specify the maximum number of
/// results to return, and whether to only include artists in the Subsonic
/// library (defaults to true).
Returns a number of random artists similar to this one.
last.fm suggests a number of similar artists to the one the method is
called on. Optionally takes a `count` to specify the maximum number of
results to return, and whether to only include artists in the Subsonic
library (defaults to true).
Returns a number of random artists similar to this one . last . fm suggests a number of similar artists to the one the method is called on . Optionally takes a ` count ` to specify the maximum number of results to return and whether to only include artists in the Subsonic library ( defaults to true ) .
pub fn similar<B, U>(
        &self,
        client: &Client,
        count: U,
        include_not_present: B,
    ) -> Result<Vec<Artist>>
    where
        B: Into<Option<bool>>,
        U: Into<Option<usize>>,
    {
        let args = Query::with("id", self.id)
            .arg("count", count.into())
            .arg("includeNotPresent", include_not_present.into())
            .build();
        let res = serde_json::from_value::<ArtistInfo>(client.get("getArtistInfo", args)?)?;
        Ok(res.similar_artists)
    }
pub fn similar < B , U > ( & self , client : & Client , count : U , include_not_present : B , ) -> Result < Vec < Artist > > where B : Into < Option < bool > > , U : Into < Option < usize > > , { let args = Query :: with ( " " , self . id ) . arg ( " " , count . into ( ) ) . arg ( " " , include_not_present . into ( ) ) . build ( ) ; let res = serde_json :: from_value :: < ArtistInfo > ( client . get ( " " , args ) ? ) ? ; Ok ( res . similar_artists ) }
Returns a number of random artists similar to this one.
Returns a number of random artists similar to this one .
&self
client
&Client
count
U
include_not_present
B
&self
client
&Client
count
U
include_not_present
B