pub fn random<U>(client: &Client, size: U) -> Result<Vec<Song>>
    where
        U: Into<Option<usize>>,
    {
        let arg = Query::with("size", size.into().unwrap_or(10));
        let song = client.get("getRandomSongs", arg)?;
        Ok(get_list_as!(song, Song))
    }
/// Returns a number of random songs. Optionally accepts a maximum number
/// of results to return.
///
/// Some parts of the query can be modified. Use [`random_with`] to be able
/// to set these optional fields.
///
/// [`random_with`]: #method.random_with
Returns a number of random songs. Optionally accepts a maximum number
of results to return.

Some parts of the query can be modified. Use [`random_with`] to be able
to set these optional fields.


Returns a number of random songs . Optionally accepts a maximum number of results to return . Some parts of the query can be modified . Use [ ` random_with ` ] to be able to set these optional fields .
pub fn random<U>(client: &Client, size: U) -> Result<Vec<Song>>
    where
        U: Into<Option<usize>>,
    {
        let arg = Query::with("size", size.into().unwrap_or(10));
        let song = client.get("getRandomSongs", arg)?;
        Ok(get_list_as!(song, Song))
    }
pub fn random < U > ( client : & Client , size : U ) -> Result < Vec < Song > > where U : Into < Option < usize > > , { let arg = Query :: with ( " " , size . into ( ) . unwrap_or ( 10 ) ) ; let song = client . get ( " " , arg ) ? ; Ok ( get_list_as ! ( song Song ) ) }
Returns a number of random songs.
Returns a number of random songs .
client
&Client
size
U
client
&Client
size
U