pub struct GitVersion {
pub semver: Option<SemanticVersion>,
pub hash: [u8; 4],
pub dirty: bool,
pub git_string: VersionString,
}Expand description
Version information parsed from the git state
Fields§
§semver: Option<SemanticVersion>Last Tag parsed as semantic version (if tagged at all)
hash: [u8; 4]The beginning of the unique git hash as byte array
dirty: boolTrue if the repo contains uncommitted changes
git_string: VersionStringThe string returned by the git-describe call
Trait Implementations§
Source§impl Clone for GitVersion
impl Clone for GitVersion
Source§fn clone(&self) -> GitVersion
fn clone(&self) -> GitVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 GitVersion
impl Debug for GitVersion
Source§impl PartialEq for GitVersion
impl PartialEq for GitVersion
impl Eq for GitVersion
impl StructuralPartialEq for GitVersion
Auto Trait Implementations§
impl Freeze for GitVersion
impl RefUnwindSafe for GitVersion
impl Send for GitVersion
impl Sync for GitVersion
impl Unpin for GitVersion
impl UnwindSafe for GitVersion
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