pub enum VersionCommand {
Show 13 variants
Major(GetSet),
Minor(GetSet),
Patch(GetSet),
Alpha(GetSetRm),
Beta(GetSetRm),
RC(GetSetRm),
Build(GetSetBuild),
Get,
Set(SetVer),
Version,
Revision,
File(FilesCommand),
Package(PackageCommand),
}
Expand description
Specify the version number to change
Variants§
Major(GetSet)
Change the major version number
Minor(GetSet)
Change the minor version number
Patch(GetSet)
Change the patch version number
Alpha(GetSetRm)
Change the alpha identifier
Beta(GetSetRm)
Change the beta identifier
RC(GetSetRm)
Change the release candidate identifier
Build(GetSetBuild)
Change the build identifier
Get
Get the current version number as a full SemVer string
Set(SetVer)
Set the version number to a specific version
Version
Get just the version number as a string with no revision or build identifiers
Revision
Get just the revision number as a string with no build identifiers
File(FilesCommand)
Track and update the version number in a file
Package(PackageCommand)
Track and update the version number in a file
Trait Implementations§
Source§impl Clone for VersionCommand
impl Clone for VersionCommand
Source§fn clone(&self) -> VersionCommand
fn clone(&self) -> VersionCommand
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 VersionCommand
impl Debug for VersionCommand
Source§impl FromArgMatches for VersionCommand
impl FromArgMatches for VersionCommand
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 PartialEq for VersionCommand
impl PartialEq for VersionCommand
Source§impl Subcommand for VersionCommand
impl Subcommand for VersionCommand
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 subcommandSource§impl TryFrom<&VersionCommand> for Scope
impl TryFrom<&VersionCommand> for Scope
Source§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
Source§fn try_from(cmd: &VersionCommand) -> Result<Self, VersionError>
fn try_from(cmd: &VersionCommand) -> Result<Self, VersionError>
Performs the conversion.
Source§impl TryFrom<VersionCommand> for Scope
impl TryFrom<VersionCommand> for Scope
Source§type Error = VersionError
type Error = VersionError
The type returned in the event of a conversion error.
Source§fn try_from(cmd: VersionCommand) -> Result<Self, VersionError>
fn try_from(cmd: VersionCommand) -> Result<Self, VersionError>
Performs the conversion.
impl StructuralPartialEq for VersionCommand
Auto Trait Implementations§
impl Freeze for VersionCommand
impl RefUnwindSafe for VersionCommand
impl Send for VersionCommand
impl Sync for VersionCommand
impl Unpin for VersionCommand
impl UnwindSafe for VersionCommand
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