crate_cli/bump/struct.rs
1use super::*;
2
3/// Parsed version components following semantic versioning
4#[derive(Clone, Debug, Eq, Getter, New, PartialEq)]
5pub struct Version {
6 /// Major version number
7 #[get(type(copy))]
8 pub(crate) major: u64,
9 /// Minor version number
10 #[get(type(copy))]
11 pub(crate) minor: u64,
12 /// Patch version number
13 #[get(type(copy))]
14 pub(crate) patch: u64,
15 /// Optional pre-release identifier (e.g. alpha, beta, rc.1)
16 pub(crate) prerelease: Option<String>,
17}