pub enum ProblemAction {
New {
title: String,
priority: String,
parent: Option<String>,
milestone: Option<String>,
force: bool,
tags: Vec<String>,
},
List {
status: Option<String>,
tree: bool,
milestone: Option<String>,
search: Option<String>,
assignee: Option<String>,
tag: Option<String>,
sort: String,
json: bool,
},
Show {
problem_id: String,
json: bool,
},
Edit {
problem_id: String,
title: Option<String>,
status: Option<String>,
priority: Option<String>,
parent: Option<String>,
add_tag: Option<String>,
remove_tag: Option<String>,
set_tags: Option<Vec<String>>,
},
Tree {
problem_id: Option<String>,
},
Solve {
problem_id: String,
github_close: bool,
},
Dissolve {
problem_id: String,
reason: Option<String>,
github_close: bool,
},
Assign {
problem_id: String,
to: Option<String>,
},
Reopen {
problem_id: String,
},
Duplicate {
problem_id: String,
of: String,
},
Graph {
milestone: Option<String>,
all: bool,
},
}Variants§
New
Create a new problem
Fields
Comma-separated tags (e.g., –tags backend,auth,size:L)
List
List problems with optional filters
Fields
Show
Show details for a problem
Fields
Edit
Edit a problem’s title, status, or priority
Fields
Replace all tags (comma-separated; empty string clears tags)
Tree
Show problems as a hierarchy tree
Solve
Mark a problem solved (requires an approved solution or all sub-problems solved)
Fields
Dissolve
Dissolve a problem — mark it as based on false premises, not truly a problem
Fields
Assign
Assign a problem to yourself or someone else
Fields
Reopen
Reopen a solved or dissolved problem (transition back to open)
Duplicate
Mark a problem as a duplicate of another — dissolves it with a back-reference
Fields
Graph
Render problem hierarchy as ASCII DAG
Trait Implementations§
Source§impl FromArgMatches for ProblemAction
impl FromArgMatches for ProblemAction
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 ProblemAction
impl Subcommand for ProblemAction
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 ProblemAction
impl RefUnwindSafe for ProblemAction
impl Send for ProblemAction
impl Sync for ProblemAction
impl Unpin for ProblemAction
impl UnsafeUnpin for ProblemAction
impl UnwindSafe for ProblemAction
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more