pub struct Version {
pub major: u64,
pub minor: u64,
pub patch: u64,
pub prerelease: Option<String>,
}Expand description
Parsed version components following semantic versioning
Fields§
§major: u64Major version number
minor: u64Minor version number
patch: u64Patch version number
prerelease: Option<String>Optional pre-release identifier (e.g., “alpha”, “beta”, “rc.1”)
Trait Implementations§
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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