pub enum PlaylistCommand {
Show 13 variants
List {
limit: u8,
offset: u32,
},
Get {
playlist: String,
},
Create {
name: String,
description: Option<String>,
public: bool,
},
Add {
playlist: String,
uris: Vec<String>,
now_playing: bool,
position: Option<u32>,
dry_run: bool,
},
Remove {
playlist: String,
uris: Vec<String>,
dry_run: bool,
},
Edit {
playlist: String,
name: Option<String>,
description: Option<String>,
public: bool,
private: bool,
},
Reorder {
playlist: String,
from: u32,
to: u32,
count: u32,
},
Follow {
playlist: String,
public: bool,
},
Unfollow {
playlist: String,
},
Duplicate {
playlist: String,
name: Option<String>,
},
Cover {
playlist: String,
},
User {
user_id: String,
},
Deduplicate {
playlist: String,
dry_run: bool,
},
}Variants§
List
List your playlists (alias: ls)
Fields
Get
Get playlist details
Create
Create a new playlist
Fields
Add
Add tracks to a playlist
Fields
Remove
Remove tracks from a playlist
Fields
Edit
Edit playlist details
Fields
Reorder
Reorder tracks in a playlist
Fields
Follow
Follow a playlist
Unfollow
Unfollow a playlist
Duplicate
Duplicate a playlist
Fields
Cover
Get playlist cover image URL
User
Get another user’s playlists
Deduplicate
Remove duplicate tracks from a playlist (alias: dedup)
Trait Implementations§
Source§impl FromArgMatches for PlaylistCommand
impl FromArgMatches for PlaylistCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for PlaylistCommand
impl Subcommand for PlaylistCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for PlaylistCommand
impl RefUnwindSafe for PlaylistCommand
impl Send for PlaylistCommand
impl Sync for PlaylistCommand
impl Unpin for PlaylistCommand
impl UnwindSafe for PlaylistCommand
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