pub enum ChallengeCommand {
List {
category: Option<String>,
state: Option<String>,
keyword: Option<String>,
page: Option<u32>,
},
Categories,
Info {
slug: String,
},
Download {
slug: String,
},
Start {
slug: String,
},
Stop {
slug: String,
},
Writeup {
slug: String,
},
Submit {
id: u64,
flag: String,
},
}Variants§
List
List challenges
Categories
List challenge categories
Info
Show challenge details
Download
Download challenge files
Start
Start a challenge instance
Stop
Stop a challenge instance
Writeup
Download official writeup (if available)
Submit
Submit a flag
Trait Implementations§
Source§impl FromArgMatches for ChallengeCommand
impl FromArgMatches for ChallengeCommand
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 ChallengeCommand
impl Subcommand for ChallengeCommand
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 ChallengeCommand
impl RefUnwindSafe for ChallengeCommand
impl Send for ChallengeCommand
impl Sync for ChallengeCommand
impl Unpin for ChallengeCommand
impl UnsafeUnpin for ChallengeCommand
impl UnwindSafe for ChallengeCommand
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