pub enum Command {
Show 18 variants
Auth {
command: AuthCommand,
},
Player {
command: PlayerCommand,
},
Pin {
command: PinCommand,
},
Search {Show 16 fields
query: String,
types: Vec<String>,
limit: u8,
pins_only: bool,
exact: bool,
artist: Option<String>,
album: Option<String>,
track: Option<String>,
year: Option<String>,
genre: Option<String>,
isrc: Option<String>,
upc: Option<String>,
new: bool,
hipster: bool,
play: bool,
sort: bool,
},
Playlist {
command: PlaylistCommand,
},
Library {
command: LibraryCommand,
},
Info {
command: InfoCommand,
},
User {
command: UserCommand,
},
Show {
command: ShowCommand,
},
Episode {
command: EpisodeCommand,
},
Audiobook {
command: AudiobookCommand,
},
Album {
command: AlbumCommand,
},
Chapter {
command: ChapterCommand,
},
Category {
command: CategoryCommand,
},
Follow {
command: FollowCommand,
},
Markets,
Daemon {
command: DaemonCommand,
},
Completions {
shell: Shell,
},
}Variants§
Auth
Authentication commands
Fields
§
command: AuthCommandPlayer
Player controls (alias: p)
Fields
§
command: PlayerCommandPin
Manage pinned resources
Fields
§
command: PinCommandSearch
Search Spotify and pinned resources (alias: s)
Fields
Playlist
Manage playlists (alias: pl)
Fields
§
command: PlaylistCommandLibrary
Manage your library (liked songs) (alias: lib)
Fields
§
command: LibraryCommandInfo
Get info about track, album, or artist (defaults to now playing) (alias: i)
Fields
§
command: InfoCommandUser
User profile and stats
Fields
§
command: UserCommandShow
Manage podcasts (shows)
Fields
§
command: ShowCommandEpisode
Manage podcast episodes
Fields
§
command: EpisodeCommandAudiobook
Manage audiobooks
Fields
§
command: AudiobookCommandAlbum
Manage saved albums
Fields
§
command: AlbumCommandChapter
Get audiobook chapter details
Fields
§
command: ChapterCommandCategory
Browse Spotify categories
Fields
§
command: CategoryCommandFollow
Follow/unfollow artists and users
Fields
§
command: FollowCommandMarkets
List available Spotify markets (countries)
Daemon
RPC daemon for external control (Neovim, scripts, etc.)
Fields
§
command: DaemonCommandCompletions
Generate shell completions
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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