pub enum CaseCommand {
Show 13 variants
Create(CaseCreateArgs),
List,
Show {
case_ref: String,
},
Add {
case_ref: String,
message_id: String,
summary: Option<String>,
reason: Option<String>,
},
Move {
case_ref: String,
group: String,
},
Rename {
case_ref: String,
name: String,
reason: Option<String>,
},
Notes {
action: CaseNotesAction,
},
Archive {
case_ref: String,
reason: Option<String>,
},
Reopen {
case_ref: String,
reason: Option<String>,
},
Tag {
case_ref: String,
tag: String,
reason: Option<String>,
},
Untag {
case_ref: String,
tag: String,
reason: Option<String>,
},
Draft {
action: CaseDraftAction,
},
Merge {
case_ref: String,
other_case_ref: String,
reason: Option<String>,
},
}Variants§
Create(CaseCreateArgs)
Create a new case and return its stable UID/ref.
List
List compact active case locators.
Show
Show a case’s case.md (active or archived) without changing workspace state.
Add
Add a message to this existing case.
Fields
Move
Move this case to another group.
Fields
Rename
Rename this active case’s human-readable name without changing its UID.
Fields
Notes
Show or edit active case notes.
Fields
§
action: CaseNotesActionArchive
Archive this active case.
Fields
Reopen
Reopen this case as active work without changing its tags.
Fields
Tag
Add a case organization tag.
Fields
Untag
Remove a case organization tag.
Fields
Draft
Create, edit, validate, queue, or remove local case drafts.
Fields
§
action: CaseDraftActionMerge
Merge another case into this case.
Trait Implementations§
Source§impl Debug for CaseCommand
impl Debug for CaseCommand
Source§impl FromArgMatches for CaseCommand
impl FromArgMatches for CaseCommand
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 CaseCommand
impl Subcommand for CaseCommand
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 CaseCommand
impl RefUnwindSafe for CaseCommand
impl Send for CaseCommand
impl Sync for CaseCommand
impl Unpin for CaseCommand
impl UnsafeUnpin for CaseCommand
impl UnwindSafe for CaseCommand
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