pub struct Version<'a> {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub pre_release: Option<&'a str>,
pub build_metadata: Option<&'a str>,
}Expand description
A full package version (major, minor, patch, pre-release and build-metadata).
Fields§
§major: u32The major version of the package.
minor: u32The minor version of the package.
patch: u32The patch version of the package.
pre_release: Option<&'a str>The pre-release version of the package.
build_metadata: Option<&'a str>The build metadata of the package.
Trait Implementations§
impl<'a> Copy for Version<'a>
impl<'a> Eq for Version<'a>
impl<'a> StructuralPartialEq for Version<'a>
Auto Trait Implementations§
impl<'a> Freeze for Version<'a>
impl<'a> RefUnwindSafe for Version<'a>
impl<'a> Send for Version<'a>
impl<'a> Sync for Version<'a>
impl<'a> Unpin for Version<'a>
impl<'a> UnwindSafe for Version<'a>
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