pub struct PlaylistsClient { /* private fields */ }Expand description
Spotify playlists API client.
Implementations§
Source§impl PlaylistsClient
impl PlaylistsClient
pub fn new(http: HttpClient, auth: AuthService) -> Self
pub fn list_all(&self) -> Result<Vec<Playlist>>
pub fn get(&self, playlist_id: &str) -> Result<PlaylistDetail>
pub fn create(&self, name: &str, public: Option<bool>) -> Result<PlaylistDetail>
pub fn rename(&self, playlist_id: &str, name: &str) -> Result<()>
pub fn delete(&self, playlist_id: &str) -> Result<()>
pub fn follow(&self, playlist_id: &str) -> Result<()>
pub fn unfollow(&self, playlist_id: &str) -> Result<()>
pub fn add_tracks(&self, playlist_id: &str, uris: &[String]) -> Result<()>
Trait Implementations§
Source§impl Clone for PlaylistsClient
impl Clone for PlaylistsClient
Source§fn clone(&self) -> PlaylistsClient
fn clone(&self) -> PlaylistsClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlaylistsClient
impl !RefUnwindSafe for PlaylistsClient
impl Send for PlaylistsClient
impl Sync for PlaylistsClient
impl Unpin for PlaylistsClient
impl !UnwindSafe for PlaylistsClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more