pub struct SemanticVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub rc: bool,
pub commits: u32,
}
Expand description
A SemVer (Semantic Version)
Fields§
§major: u32
Major release
minor: u32
Minor release
patch: u32
Patch level
rc: bool
Whether this was tagged as release candidate or not
commits: u32
Amount of commits since this semver was tagged
Trait Implementations§
Source§impl Debug for SemanticVersion
impl Debug for SemanticVersion
Source§impl PartialEq for SemanticVersion
impl PartialEq for SemanticVersion
impl Eq for SemanticVersion
impl StructuralPartialEq for SemanticVersion
Auto Trait Implementations§
impl Freeze for SemanticVersion
impl RefUnwindSafe for SemanticVersion
impl Send for SemanticVersion
impl Sync for SemanticVersion
impl Unpin for SemanticVersion
impl UnwindSafe for SemanticVersion
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