Struct minver_rs::Version [−][src]
pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub prerelease: Option<String>,
pub build_metadata: Option<String>,
}
Expand description
Represents a semver 2.0 version.
Fields
major: u32
minor: u32
patch: u32
prerelease: Option<String>
The prerelease identifier without the -
.
build_metadata: Option<String>
The build metadata with the +
.
Implementations
Compares the precedence of two versions according to semver 2.0 rules.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Version
impl UnwindSafe for Version
Blanket Implementations
Mutably borrows from an owned value. Read more