Enum cargo_workflows::args::SubCommandEnum
source · pub enum SubCommandEnum {
Run(RunCommand),
Init(InitCommand),
}Variants§
Run(RunCommand)
Runs a specific workflow in the workflows.toml file
Init(InitCommand)
Initializes a new workflow.toml file
Trait Implementations§
source§impl Clone for SubCommandEnum
impl Clone for SubCommandEnum
source§fn clone(&self) -> SubCommandEnum
fn clone(&self) -> SubCommandEnum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SubCommandEnum
impl Debug for SubCommandEnum
source§impl FromArgMatches for SubCommandEnum
impl FromArgMatches for SubCommandEnum
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 Hash for SubCommandEnum
impl Hash for SubCommandEnum
source§impl Ord for SubCommandEnum
impl Ord for SubCommandEnum
source§fn cmp(&self, other: &SubCommandEnum) -> Ordering
fn cmp(&self, other: &SubCommandEnum) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SubCommandEnum> for SubCommandEnum
impl PartialEq<SubCommandEnum> for SubCommandEnum
source§fn eq(&self, other: &SubCommandEnum) -> bool
fn eq(&self, other: &SubCommandEnum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SubCommandEnum> for SubCommandEnum
impl PartialOrd<SubCommandEnum> for SubCommandEnum
source§fn partial_cmp(&self, other: &SubCommandEnum) -> Option<Ordering>
fn partial_cmp(&self, other: &SubCommandEnum) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Subcommand for SubCommandEnum
impl Subcommand for SubCommandEnum
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
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandimpl Eq for SubCommandEnum
impl StructuralEq for SubCommandEnum
impl StructuralPartialEq for SubCommandEnum
Auto Trait Implementations§
impl RefUnwindSafe for SubCommandEnum
impl Send for SubCommandEnum
impl Sync for SubCommandEnum
impl Unpin for SubCommandEnum
impl UnwindSafe for SubCommandEnum
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.