pub struct BranchConfiguration {Show 15 fields
pub regex: Option<String>,
pub label: Option<String>,
pub increment: Option<IncrementStrategy>,
pub mode: Option<DeploymentMode>,
pub commit_message_incrementing: Option<CommitMessageIncrementMode>,
pub prevent_increment: Option<PreventIncrement>,
pub track_merge_target: Option<bool>,
pub track_merge_message: Option<bool>,
pub tracks_release_branches: Option<bool>,
pub is_release_branch: Option<bool>,
pub is_main_branch: Option<bool>,
pub pre_release_weight: Option<i64>,
pub source_branches: Vec<String>,
pub is_source_branch_for: Vec<String>,
pub label_number_pattern: Option<String>,
}Expand description
Per-branch configuration. Merged with the global configuration via inheritance.
Fields§
§regex: Option<String>§label: Option<String>§increment: Option<IncrementStrategy>§mode: Option<DeploymentMode>§commit_message_incrementing: Option<CommitMessageIncrementMode>§prevent_increment: Option<PreventIncrement>§track_merge_target: Option<bool>§track_merge_message: Option<bool>§tracks_release_branches: Option<bool>§is_release_branch: Option<bool>§is_main_branch: Option<bool>§pre_release_weight: Option<i64>§source_branches: Vec<String>§is_source_branch_for: Vec<String>§label_number_pattern: Option<String>Regex for extracting a number from the pre-release label.
Corresponds to the original BranchConfiguration.LabelNumberPattern.
When None, the built-in fixed pattern is used.
Trait Implementations§
Source§impl Clone for BranchConfiguration
impl Clone for BranchConfiguration
Source§fn clone(&self) -> BranchConfiguration
fn clone(&self) -> BranchConfiguration
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 moreSource§impl Debug for BranchConfiguration
impl Debug for BranchConfiguration
Source§impl Default for BranchConfiguration
impl Default for BranchConfiguration
Source§fn default() -> BranchConfiguration
fn default() -> BranchConfiguration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchConfiguration
impl<'de> Deserialize<'de> for BranchConfiguration
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BranchConfiguration
impl RefUnwindSafe for BranchConfiguration
impl Send for BranchConfiguration
impl Sync for BranchConfiguration
impl Unpin for BranchConfiguration
impl UnsafeUnpin for BranchConfiguration
impl UnwindSafe for BranchConfiguration
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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