pub fn create(&self, client: &Client) -> Result<()> {
        let args = Query::with("username", self.username.as_ref())
            .arg("password", self.password.as_ref())
            .arg("email", self.email.as_ref())
            .arg("ldapAuthenticated", self.ldap_authenticated)
            .arg("adminRole", self.admin_role)
            .arg("settingsRole", self.settings_role)
            .arg("streamRole", self.stream_role)
            .arg("jukeboxRole", self.jukebox_role)
            .arg("downloadRole", self.download_role)
            .arg("uploadRole", self.upload_role)
            .arg("coverArt_role", self.cover_art_role)
            .arg("commentRole", self.comment_role)
            .arg("podcastRole", self.podcast_role)
            .arg("shareRole", self.share_role)
            .arg("videoConversionRole", self.video_conversion_role)
            .arg_list("musicFolderId", &self.folders)
            .arg("maxBitRate", self.max_bit_rate)
            .build();
        client.get("createUser", args)?;
        Ok(())
    }
/// Pushes a defined new user to the Subsonic server.
Pushes a defined new user to the Subsonic server.
Pushes a defined new user to the Subsonic server .
pub fn create(&self, client: &Client) -> Result<()> {
        let args = Query::with("username", self.username.as_ref())
            .arg("password", self.password.as_ref())
            .arg("email", self.email.as_ref())
            .arg("ldapAuthenticated", self.ldap_authenticated)
            .arg("adminRole", self.admin_role)
            .arg("settingsRole", self.settings_role)
            .arg("streamRole", self.stream_role)
            .arg("jukeboxRole", self.jukebox_role)
            .arg("downloadRole", self.download_role)
            .arg("uploadRole", self.upload_role)
            .arg("coverArt_role", self.cover_art_role)
            .arg("commentRole", self.comment_role)
            .arg("podcastRole", self.podcast_role)
            .arg("shareRole", self.share_role)
            .arg("videoConversionRole", self.video_conversion_role)
            .arg_list("musicFolderId", &self.folders)
            .arg("maxBitRate", self.max_bit_rate)
            .build();
        client.get("createUser", args)?;
        Ok(())
    }
pub fn create ( & self , client : & Client ) -> Result < ( ) > { let args = Query :: with ( " " , self . username . as_ref ( ) ) . arg ( " " , self . password . as_ref ( ) ) . arg ( " " , self . email . as_ref ( ) ) . arg ( " " , self . ldap_authenticated ) . arg ( " " , self . admin_role ) . arg ( " " , self . settings_role ) . arg ( " " , self . stream_role ) . arg ( " " , self . jukebox_role ) . arg ( " " , self . download_role ) . arg ( " " , self . upload_role ) . arg ( " " , self . cover_art_role ) . arg ( " " , self . comment_role ) . arg ( " " , self . podcast_role ) . arg ( " " , self . share_role ) . arg ( " " , self . video_conversion_role ) . arg_list ( " " , & self . folders ) . arg ( " " , self . max_bit_rate ) . build ( ) ; client . get ( " " , args ) ? ; Ok ( ( ) ) }
Pushes a defined new user to the Subsonic server.
Pushes a defined new user to the Subsonic server .
&self
client
&Client
&self
client
&Client