Enum cargo_release::steps::BumpLevel
source · [−]pub enum BumpLevel {
Major,
Minor,
Patch,
Release,
Rc,
Beta,
Alpha,
}Variants
Major
Increase the major version (x.0.0)
Minor
Increase the minor version (x.y.0)
Patch
Increase the patch version (x.y.z)
Release
Remove the pre-version (x.y.z)
Rc
Increase the rc pre-version (x.y.z-rc.M)
Beta
Increase the beta pre-version (x.y.z-beta.M)
Alpha
Increase the alpha pre-version (x.y.z-alpha.M)
Implementations
sourceimpl BumpLevel
impl BumpLevel
pub fn bump_version(
self,
version: &mut Version,
metadata: Option<&str>
) -> CargoResult<()>
Trait Implementations
sourceimpl ValueEnum for BumpLevel
impl ValueEnum for BumpLevel
sourcefn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn value_variants<'a>() -> &'a [Self]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
All possible argument values, in display order.
sourcefn to_possible_value<'a>(&self) -> Option<PossibleValue>
fn to_possible_value<'a>(&self) -> Option<PossibleValue>
The canonical argument value. Read more
impl Copy for BumpLevel
Auto Trait Implementations
impl RefUnwindSafe for BumpLevel
impl Send for BumpLevel
impl Sync for BumpLevel
impl Unpin for BumpLevel
impl UnwindSafe for BumpLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more