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 (const: unstable) · 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<'de> Deserialize<'de> for SemanticVersion
impl<'de> Deserialize<'de> for SemanticVersion
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
impl Eq for SemanticVersion
Source§impl PartialEq for SemanticVersion
impl PartialEq for SemanticVersion
Source§fn eq(&self, other: &SemanticVersion) -> bool
fn eq(&self, other: &SemanticVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticVersion
impl Serialize 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 UnsafeUnpin 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