fn update_playlist<'a, B, S>(
    client: &Client,
    id: u64,
    name: S,
    comment: S,
    public: B,
    to_add: &[u64],
    to_remove: &[u64],
) -> Result<()>
where
    S: Into<Option<&'a str>>,
    B: Into<Option<bool>>,
{
    let args = Query::new()
        .arg("id", id)
        .arg("name", name.into())
        .arg("comment", comment.into())
        .arg("public", public.into())
        .arg_list("songIdToAdd", to_add)
        .arg_list("songIndexToRemove", to_remove)
        .build();

    client.get("updatePlaylist", args)?;
    Ok(())
}
/// Updates a playlist. Only the owner of the playlist is privileged to do so.
Updates a playlist. Only the owner of the playlist is privileged to do so.
Updates a playlist . Only the owner of the playlist is privileged to do so .
fn update_playlist<'a, B, S>(
    client: &Client,
    id: u64,
    name: S,
    comment: S,
    public: B,
    to_add: &[u64],
    to_remove: &[u64],
) -> Result<()>
where
    S: Into<Option<&'a str>>,
    B: Into<Option<bool>>,
{
    let args = Query::new()
        .arg("id", id)
        .arg("name", name.into())
        .arg("comment", comment.into())
        .arg("public", public.into())
        .arg_list("songIdToAdd", to_add)
        .arg_list("songIndexToRemove", to_remove)
        .build();
    client.get("updatePlaylist", args)?;
    Ok(())
}
fn update_playlist < ' a , B , S > ( client : & Client , id : u64 , name : S , comment : S , public : B , to_add : & [ u64 ] , to_remove : & [ u64 ] , ) -> Result < ( ) > where S : Into < Option < & ' a str > > , B : Into < Option < bool > > , { let args = Query :: new ( ) . arg ( " " , id ) . arg ( " " , name . into ( ) ) . arg ( " " , comment . into ( ) ) . arg ( " " , public . into ( ) ) . arg_list ( " " , to_add ) . arg_list ( " " , to_remove ) . build ( ) ; client . get ( " " , args ) ? ; Ok ( ( ) ) }
Updates a playlist.
Updates a playlist .
client
&Client
id
u64
name
S
comment
S
public
B
to_add
&[u64]
to_remove
&[u64]
client
&Client
id
u64
name
S
comment
S
public
B
to_add
&[u64]
to_remove
&[u64]