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: u32Major release
minor: u32Minor release
patch: u32Patch level
rc: boolWhether this was tagged as release candidate or not
commits: u32Amount of commits since this semver was tagged
Trait Implementations§
Source§impl Clone for SemanticVersion
impl Clone for SemanticVersion
Source§fn clone(&self) -> SemanticVersion
fn clone(&self) -> SemanticVersion
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 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