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: StringRegex for extracting a number from the pre-release label.
Implementations§
Source§impl EffectiveConfiguration
impl EffectiveConfiguration
Sourcepub fn resolve(config: &GitVersionConfiguration, branch_name: &str) -> Self
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
impl Clone for EffectiveConfiguration
Source§fn clone(&self) -> EffectiveConfiguration
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EffectiveConfiguration
impl RefUnwindSafe for EffectiveConfiguration
impl Send for EffectiveConfiguration
impl Sync for EffectiveConfiguration
impl Unpin for EffectiveConfiguration
impl UnsafeUnpin for EffectiveConfiguration
impl UnwindSafe for EffectiveConfiguration
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<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>
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 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>
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