pub struct ReleaseConfig {Show 16 fields
pub branches: Vec<String>,
pub tag_prefix: String,
pub commit_pattern: String,
pub breaking_section: String,
pub misc_section: String,
pub types: Vec<CommitType>,
pub changelog: ChangelogConfig,
pub version_files: Vec<String>,
pub version_files_strict: bool,
pub artifacts: Vec<String>,
pub floating_tags: bool,
pub build_command: Option<String>,
pub stage_files: Vec<String>,
pub prerelease: Option<String>,
pub pre_release_command: Option<String>,
pub post_release_command: Option<String>,
}Fields§
§branches: Vec<String>§tag_prefix: String§commit_pattern: String§breaking_section: String§misc_section: String§types: Vec<CommitType>§changelog: ChangelogConfig§version_files: Vec<String>§version_files_strict: bool§artifacts: Vec<String>§build_command: Option<String>§stage_files: Vec<String>Additional files/globs to stage after build_command runs (e.g. Cargo.lock).
prerelease: Option<String>Pre-release identifier (e.g. “alpha”, “beta”, “rc”). When set, versions are
formatted as X.Y.Z-
pre_release_command: Option<String>Shell command to run before the release starts (validation, checks).
post_release_command: Option<String>Shell command to run after the release completes (notifications, deployments).
Implementations§
Source§impl ReleaseConfig
impl ReleaseConfig
Sourcepub fn load(path: &Path) -> Result<Self, ReleaseError>
pub fn load(path: &Path) -> Result<Self, ReleaseError>
Load config from a YAML file, falling back to defaults if the file doesn’t exist.
Trait Implementations§
Source§impl Clone for ReleaseConfig
impl Clone for ReleaseConfig
Source§fn clone(&self) -> ReleaseConfig
fn clone(&self) -> ReleaseConfig
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 ReleaseConfig
impl Debug for ReleaseConfig
Source§impl Default for ReleaseConfig
impl Default for ReleaseConfig
Source§impl<'de> Deserialize<'de> for ReleaseConfigwhere
ReleaseConfig: Default,
impl<'de> Deserialize<'de> for ReleaseConfigwhere
ReleaseConfig: Default,
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 ReleaseConfig
impl RefUnwindSafe for ReleaseConfig
impl Send for ReleaseConfig
impl Sync for ReleaseConfig
impl Unpin for ReleaseConfig
impl UnsafeUnpin for ReleaseConfig
impl UnwindSafe for ReleaseConfig
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