pub fn new(url: &str, user: &str, password: &str) -> Result<Client> {
        let auth = SubsonicAuth::new(user, password);
        let url = url.parse::<Url>()?;
        let ver = Version::from("1.14.0");
        let target_ver = ver;

        let reqclient = ReqwestClient::builder().build()?;

        Ok(Client {
            url,
            auth,
            reqclient,
            ver,
            target_ver,
        })
    }
/// Constructs a client to interact with a Subsonic instance.
Constructs a client to interact with a Subsonic instance.
Constructs a client to interact with a Subsonic instance .
pub fn new(url: &str, user: &str, password: &str) -> Result<Client> {
        let auth = SubsonicAuth::new(user, password);
        let url = url.parse::<Url>()?;
        let ver = Version::from("1.14.0");
        let target_ver = ver;
        let reqclient = ReqwestClient::builder().build()?;
        Ok(Client {
            url,
            auth,
            reqclient,
            ver,
            target_ver,
        })
    }
pub fn new ( url : & str , user : & str , password : & str ) -> Result < Client > { let auth = SubsonicAuth :: new ( user , password ) ; let url = url . parse :: < Url > ( ) ? ; let ver = Version :: from ( " " ) ; let target_ver = ver ; let reqclient = ReqwestClient :: builder ( ) . build ( ) ? ; Ok ( Client { url , auth , reqclient , ver , target_ver , } ) }
Constructs a client to interact with a Subsonic instance.
Constructs a client to interact with a Subsonic instance .
url
&str
user
&str
password
&str
url
&str
user
&str
password
&str