pub struct AddArgs {
pub title: Option<String>,
pub description: Option<String>,
pub priority: Option<String>,
pub diff: Vec<String>,
pub file: Vec<String>,
pub text: Vec<String>,
pub directory: Vec<String>,
pub stdin: Option<String>,
pub metadata: Option<String>,
pub blocked_by: Option<String>,
pub json: bool,
}Fields§
§title: Option<String>Title for the item
description: Option<String>Description for the item
priority: Option<String>Priority (0-4, 0=highest)
diff: Vec<String>Add diff source (repeatable)
file: Vec<String>Add file source (repeatable)
text: Vec<String>Add text source (repeatable)
directory: Vec<String>Add directory source (repeatable)
stdin: Option<String>Read source content from stdin (diff|file|text|directory)
metadata: Option<String>Attach metadata as JSON
blocked_by: Option<String>Comma-separated blocker IDs
json: boolOutput as JSON
Trait Implementations§
Source§impl Args for AddArgs
impl Args for AddArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for AddArgs
impl CommandFactory for AddArgs
Source§impl FromArgMatches for AddArgs
impl FromArgMatches for AddArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for AddArgs
impl Parser for AddArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for AddArgs
impl RefUnwindSafe for AddArgs
impl Send for AddArgs
impl Sync for AddArgs
impl Unpin for AddArgs
impl UnsafeUnpin for AddArgs
impl UnwindSafe for AddArgs
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