Skip to main content

CaseCommand

Enum CaseCommand 

Source
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.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§

Add

Add a message to this existing case.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§message_id: String

Message id to add.

§summary: Option<String>

Short summary for this message in the case.

§reason: Option<String>

Why this message belongs in this case; required by default.

§

Move

Move this case to another group.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§group: String

Destination group.

§

Rename

Rename this active case’s human-readable name without changing its UID.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§name: String

New human-readable case name.

§reason: Option<String>

Why this name better represents the case; required by default.

§

Notes

Show or edit active case notes.

Fields

§

Archive

Archive this active case.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§reason: Option<String>

Why this case is ready to archive; required by default.

§

Reopen

Reopen this case as active work without changing its tags.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§reason: Option<String>

Why this case should be reopened; required by default.

§

Tag

Add a case organization tag.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§tag: String

Case organization tag.

§reason: Option<String>

Why this tag is useful; required by default.

§

Untag

Remove a case organization tag.

Fields

§case_ref: String

Case ref: cYYYYMMDDNNN or cYYYYMMDDNNN-any-suffix.

§tag: String

Case organization tag.

§reason: Option<String>

Why this tag should be removed; required by default.

§

Draft

Create, edit, validate, queue, or remove local case drafts.

Fields

§

Merge

Merge another case into this case.

Fields

§case_ref: String

Primary case ref.

§other_case_ref: String

Case ref to merge into the primary case.

§reason: Option<String>

Why these cases should be merged; required by default.

Trait Implementations§

Source§

impl Debug for CaseCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for CaseCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for CaseCommand

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V