pub enum GoalCommands {
List {
include_completed: bool,
},
Get {
id: String,
},
Create {
name: String,
due_date: String,
description: String,
color: Option<String>,
owner: Option<String>,
},
Update {
id: String,
name: Option<String>,
due_date: Option<String>,
description: Option<String>,
color: Option<String>,
add_owner: Option<String>,
rem_owner: Option<String>,
},
Delete {
id: String,
},
AddKr {
goal_id: String,
name: String,
kr_type: String,
steps_start: i64,
steps_end: i64,
unit: Option<String>,
owner: Option<String>,
},
UpdateKr {
kr_id: String,
steps_current: i64,
note: Option<String>,
},
DeleteKr {
kr_id: String,
},
}Variants§
List
List goals in workspace
Get
Get a goal by ID
Create
Create a goal
Fields
Update
Update a goal
Fields
Delete
Delete a goal
AddKr
Add a key result to a goal
Fields
UpdateKr
Update a key result
DeleteKr
Delete a key result
Trait Implementations§
Source§impl FromArgMatches for GoalCommands
impl FromArgMatches for GoalCommands
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 GoalCommands
impl Subcommand for GoalCommands
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 GoalCommands
impl RefUnwindSafe for GoalCommands
impl Send for GoalCommands
impl Sync for GoalCommands
impl Unpin for GoalCommands
impl UnsafeUnpin for GoalCommands
impl UnwindSafe for GoalCommands
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