pub struct VersioningConfig {
pub source: String,
pub pattern: String,
pub style: String,
pub dev_suffix: bool,
pub commit_hash: bool,
pub fallback: String,
}Expand description
Versioning configuration from [tool.rx.versioning]
Fields§
§source: StringVersion source: “git-tag” or “pyproject” (default)
pattern: StringTag pattern for extracting version (default: “v{version}”) Supports: “v{version}”, “{version}”, “release-{version}”
style: StringVersion style: “pep440” (default) or “semver”
dev_suffix: boolWhether to include dev suffix for commits after tag
commit_hash: boolWhether to include commit hash in local version
fallback: StringFallback version if no git tag found
Trait Implementations§
Source§impl Clone for VersioningConfig
impl Clone for VersioningConfig
Source§fn clone(&self) -> VersioningConfig
fn clone(&self) -> VersioningConfig
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 VersioningConfig
impl Debug for VersioningConfig
Source§impl Default for VersioningConfig
impl Default for VersioningConfig
Source§impl<'de> Deserialize<'de> for VersioningConfig
impl<'de> Deserialize<'de> for VersioningConfig
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 VersioningConfig
impl RefUnwindSafe for VersioningConfig
impl Send for VersioningConfig
impl Sync for VersioningConfig
impl Unpin for VersioningConfig
impl UnwindSafe for VersioningConfig
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