pub struct Bump {
pub features_always_bump_minor: Option<bool>,
pub breaking_always_bump_major: Option<bool>,
pub initial_tag: Option<String>,
pub custom_major_increment_regex: Option<String>,
pub custom_minor_increment_regex: Option<String>,
pub bump_type: Option<BumpType>,
}Expand description
Bump version configuration.
Fields§
§features_always_bump_minor: Option<bool>Configures automatic minor version increments for feature changes.
When true, a feature will always trigger a minor version update.
When false, a feature will trigger:
- A patch version update if the major version is 0.
- A minor version update otherwise.
breaking_always_bump_major: Option<bool>Configures 0 -> 1 major version increments for breaking changes.
When true, a breaking change commit will always trigger a major
version update (including the transition from version 0 to 1)
When false, a breaking change commit will trigger:
- A minor version update if the major version is 0.
- A major version update otherwise.
initial_tag: Option<String>Configures the initial version of the project.
When set, the version will be set to this value if no tags are found.
custom_major_increment_regex: Option<String>Configure a custom regex pattern for major version increments.
This will check only the type of the commit against the given pattern.
§Note
commit type according to the spec is only [a-zA-Z]+
custom_minor_increment_regex: Option<String>Configure a custom regex pattern for minor version increments.
This will check only the type of the commit against the given pattern.
§Note
commit type according to the spec is only [a-zA-Z]+
bump_type: Option<BumpType>Force to always bump in major, minor or patch.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bump
impl<'de> Deserialize<'de> for Bump
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Bump
impl RefUnwindSafe for Bump
impl Send for Bump
impl Sync for Bump
impl Unpin for Bump
impl UnsafeUnpin for Bump
impl UnwindSafe for Bump
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more