Skip to main content

EffectiveConfiguration

Struct EffectiveConfiguration 

Source
pub struct EffectiveConfiguration {
Show 33 fields pub branch_key: String, pub deployment_mode: DeploymentMode, pub label: String, pub increment: IncrementStrategy, pub regex: Option<String>, pub prevent_increment_of_merged_branch: bool, pub prevent_increment_when_branch_merged: bool, pub prevent_increment_when_current_commit_tagged: bool, pub track_merge_target: bool, pub track_merge_message: bool, pub tracks_release_branches: bool, pub is_release_branch: bool, pub is_main_branch: bool, pub pre_release_weight: i64, pub tag_pre_release_weight: i64, pub commit_message_incrementing: CommitMessageIncrementMode, pub major_bump_message: String, pub minor_bump_message: String, pub patch_bump_message: String, pub no_bump_message: String, pub tag_prefix: String, pub version_in_branch_pattern: String, pub next_version: Option<String>, pub semantic_version_format: SemanticVersionFormat, pub commit_date_format: String, pub assembly_versioning_scheme: VersioningScheme, pub assembly_file_versioning_scheme: VersioningScheme, pub assembly_informational_format: String, pub assembly_versioning_format: Option<String>, pub assembly_file_versioning_format: Option<String>, pub merge_message_formats: BTreeMap<String, String>, pub source_branches: Vec<String>, pub label_number_pattern: String,
}
Expand description

All configuration values flattened to those effective for a given branch.

Fields§

§branch_key: String§deployment_mode: DeploymentMode§label: String§increment: IncrementStrategy§regex: Option<String>§prevent_increment_of_merged_branch: bool§prevent_increment_when_branch_merged: bool§prevent_increment_when_current_commit_tagged: bool§track_merge_target: bool§track_merge_message: bool§tracks_release_branches: bool§is_release_branch: bool§is_main_branch: bool§pre_release_weight: i64§tag_pre_release_weight: i64§commit_message_incrementing: CommitMessageIncrementMode§major_bump_message: String§minor_bump_message: String§patch_bump_message: String§no_bump_message: String§tag_prefix: String§version_in_branch_pattern: String§next_version: Option<String>§semantic_version_format: SemanticVersionFormat§commit_date_format: String§assembly_versioning_scheme: VersioningScheme§assembly_file_versioning_scheme: VersioningScheme§assembly_informational_format: String§assembly_versioning_format: Option<String>§assembly_file_versioning_format: Option<String>§merge_message_formats: BTreeMap<String, String>§source_branches: Vec<String>§label_number_pattern: String

Regex for extracting a number from the pre-release label.

Implementations§

Source§

impl EffectiveConfiguration

Source

pub fn resolve(config: &GitVersionConfiguration, branch_name: &str) -> Self

Merge the global configuration with the matched branch configuration to produce the effective configuration.

Trait Implementations§

Source§

impl Clone for EffectiveConfiguration

Source§

fn clone(&self) -> EffectiveConfiguration

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EffectiveConfiguration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more