pub fn update(&self, client: &Client) -> Result<()> {
        let args = Query::with("username", self.username.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.clone())
            .arg("maxBitRate", self.max_bit_rate)
            .build();
        client.get("updateUser", args)?;
        Ok(())
    }
/// Pushes any changes made to the user to the server.
///
/// # Examples
///
/// ```no_run
/// extern crate sunk;
/// use sunk::{Client, User};
///
/// # fn run() -> sunk::Result<()> {
/// let client = Client::new("http://demo.subsonic.org", "guest3", "guest")?;
/// let mut user = User::get(&client, "guest")?;
///
/// // Update email
/// user.email = "user@example.com".to_string();
/// // Disable commenting
/// user.comment_role = false;
/// // Update on server
/// user.update(&client)?;
/// # Ok(())
/// # }
/// # fn main() {
/// #     run().unwrap();
/// # }
/// ```
Pushes any changes made to the user to the server.
Pushes any changes made to the user to the server .
pub fn update(&self, client: &Client) -> Result<()> {
        let args = Query::with("username", self.username.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.clone())
            .arg("maxBitRate", self.max_bit_rate)
            .build();
        client.get("updateUser", args)?;
        Ok(())
    }
pub fn update ( & self , client : & Client ) -> Result < ( ) > { let args = Query :: with ( " " , self . username . 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 . clone ( ) ) . arg ( " " , self . max_bit_rate ) . build ( ) ; client . get ( " " , args ) ? ; Ok ( ( ) ) }
Pushes any changes made to the user to the server.
Pushes any changes made to the user to the server .
&self
client
&Client
&self
client
&Client
examples
```no_run
extern crate sunk;
use sunk::{Client, User}.
` ` ` no_run extern crate sunk ; use sunk :: { Client User } .
fn run() -> sunk::result<()> {


Update email
user.email = "user@example.com".to_string();
Disable commenting
user.comment_role = false;
Update on server
user.update(&client)?.
Update email user . email = " user@example . com " . to_string () ; Disable commenting user . comment_role = false ; Update on server user . update ( &client ) ? .
ok(())
None
}
None
fn main() {
None
run().unwrap();
None
}
None