pub struct BaseConfig {
pub commit: Option<CommitConfig>,
pub branch: Option<BranchConfig>,
pub pr: Option<PrConfig>,
pub check: Option<CheckConfig>,
pub push: Option<PushConfig>,
pub versioning: Option<VersioningConfig>,
pub changelog: Option<ChangelogConfig>,
pub release: Option<ReleaseConfig>,
pub hooks: Option<HooksConfig>,
pub ai: Option<AiConfig>,
pub registry: Option<RegistryConfig>,
pub registries: Option<HashMap<String, NamedRegistryConfig>>,
}Fields§
§commit: Option<CommitConfig>§branch: Option<BranchConfig>§pr: Option<PrConfig>§check: Option<CheckConfig>§push: Option<PushConfig>§versioning: Option<VersioningConfig>§changelog: Option<ChangelogConfig>§release: Option<ReleaseConfig>§hooks: Option<HooksConfig>§ai: Option<AiConfig>§registry: Option<RegistryConfig>§registries: Option<HashMap<String, NamedRegistryConfig>>Implementations§
Source§impl BaseConfig
impl BaseConfig
pub fn empty() -> Self
Sourcepub fn merge(self, lower: BaseConfig) -> BaseConfig
pub fn merge(self, lower: BaseConfig) -> BaseConfig
Merge two configs. self has higher priority — its sections win over lower for each
top-level section, falling back to lower only when self’s section is None.
pub fn minimal() -> Self
pub fn standard() -> Self
pub fn full() -> Self
pub fn version(&self) -> u32
pub fn commit_subject_max_length(&self) -> u32
pub fn commit_use_emojis(&self) -> bool
pub fn commit_types(&self) -> BTreeMap<String, CommitTypeConfig>
pub fn commit_scopes_mode(&self) -> ScopeMode
pub fn commit_scope_restrict_to_defined(&self) -> bool
pub fn commit_scope_allowed(&self) -> Vec<String>
pub fn commit_breaking_require_header(&self) -> bool
pub fn commit_breaking_emoji(&self) -> Option<String>
pub fn commit_breaking_emoji_mode(&self) -> EmojiMode
pub fn commit_ticket_required(&self) -> bool
pub fn commit_ticket_pattern(&self) -> Option<String>
pub fn commit_ticket_source(&self) -> TicketSource
pub fn commit_protected_allow(&self) -> bool
pub fn commit_protected_force(&self) -> bool
pub fn commit_protected_warn(&self) -> bool
pub fn branch_remote(&self) -> String
pub fn branch_protected_patterns(&self) -> Vec<String>
pub fn branch_naming_pattern(&self) -> String
pub fn branch_naming_enforce(&self) -> bool
pub fn branch_allowed_targets(&self) -> Vec<String>
pub fn pr_enabled(&self) -> bool
pub fn check_require_conventional(&self) -> bool
pub fn check_commits_enabled(&self) -> bool
pub fn check_commits_enforce_on(&self) -> CommitEnforcementScope
pub fn push_allow_protected(&self) -> bool
pub fn push_allow_force(&self) -> bool
pub fn push_check_commits(&self) -> bool
pub fn push_check_branch_policy(&self) -> bool
pub fn versioning_tag_prefix(&self) -> String
pub fn changelog_output(&self) -> String
pub fn changelog_format(&self) -> ChangelogFormat
pub fn changelog_group_by(&self) -> Vec<String>
pub fn changelog_section_order(&self) -> Vec<String>
pub fn changelog_scope_order(&self) -> Vec<String>
pub fn changelog_show_scope(&self) -> bool
pub fn changelog_show_empty_sections(&self) -> Option<bool>
pub fn changelog_show_empty_scopes(&self) -> Option<bool>
pub fn changelog_misc_section(&self) -> Option<String>
pub fn changelog_header_use(&self) -> bool
pub fn changelog_header_title(&self) -> String
pub fn changelog_header_description(&self) -> Option<String>
pub fn changelog_sections(&self) -> BTreeMap<String, ChangelogSectionConfig>
pub fn changelog_unreleased_label(&self) -> String
pub fn changelog_date_format(&self) -> Option<String>
pub fn release_enabled(&self) -> bool
pub fn release_source_branch(&self) -> String
pub fn release_target_branch(&self) -> String
pub fn release_branch_format(&self) -> String
pub fn release_hotfix_pattern(&self) -> String
pub fn release_require_clean_worktree(&self) -> bool
pub fn release_fail_if_tag_exists(&self) -> bool
pub fn release_fail_if_release_branch_exists(&self) -> bool
pub fn release_finish_tag(&self) -> bool
pub fn release_finish_push(&self) -> bool
pub fn release_finish_backmerge_branch(&self) -> String
pub fn hooks_pre_commit(&self) -> bool
pub fn hooks_commit_msg(&self) -> bool
pub fn hooks_pre_push(&self) -> bool
pub fn ai_enabled(&self) -> bool
pub fn ai_provider(&self) -> AiProvider
pub fn ai_commit_enabled(&self) -> bool
pub fn ai_changelog_enabled(&self) -> bool
pub fn ai_release_prepare_enabled(&self) -> bool
pub fn registry_use(&self) -> Option<String>
pub fn registries_map(&self) -> HashMap<String, NamedRegistryConfig>
Trait Implementations§
Source§impl Clone for BaseConfig
impl Clone for BaseConfig
Source§fn clone(&self) -> BaseConfig
fn clone(&self) -> BaseConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 BaseConfig
impl Debug for BaseConfig
Source§impl<'de> Deserialize<'de> for BaseConfig
impl<'de> Deserialize<'de> for BaseConfig
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 BaseConfig
impl RefUnwindSafe for BaseConfig
impl Send for BaseConfig
impl Sync for BaseConfig
impl Unpin for BaseConfig
impl UnsafeUnpin for BaseConfig
impl UnwindSafe for BaseConfig
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