pub struct Version {Show 14 fields
pub major: u32,
pub minor: u32,
pub patch: u32,
pub stage: Option<Stage>,
pub revision: Option<u32>,
pub post: Option<u32>,
pub dev: Option<u32>,
pub distance: u32,
pub commit: Option<String>,
pub dirty: bool,
pub tagged_metadata: Option<String>,
pub epoch: Option<u32>,
pub branch: Option<String>,
pub timestamp: Option<DateTime<Utc>>,
}Fields§
§major: u32§minor: u32§patch: u32§stage: Option<Stage>§revision: Option<u32>§post: Option<u32>§dev: Option<u32>§distance: u32§commit: Option<String>§dirty: bool§tagged_metadata: Option<String>§epoch: Option<u32>§branch: Option<String>§timestamp: Option<DateTime<Utc>>Implementations§
Source§impl Version
impl Version
pub fn new(major: u32, minor: u32, patch: u32) -> Self
pub fn with_stage(self, stage: Stage, revision: Option<u32>) -> Self
pub fn with_post(self, post: u32) -> Self
pub fn with_dev(self, dev: u32) -> Self
pub fn with_distance(self, distance: u32) -> Self
pub fn with_commit(self, commit: &str) -> Self
pub fn with_dirty(self, dirty: bool) -> Self
pub fn with_branch(self, branch: &str) -> Self
pub fn with_timestamp(self, timestamp: DateTime<Utc>) -> Self
Trait Implementations§
Source§impl Ord for Version
impl Ord for Version
Source§impl PartialOrd for Version
impl PartialOrd for Version
impl Eq 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 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