pub struct GitVersion<'a> {
pub semver: Option<SemanticVersion>,
pub hash: [u8; 4],
pub dirty: bool,
pub git_string: &'a str,
}
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: bool
True if the repo contains uncommitted changes
git_string: &'a str
The string returned by the git-describe call
Trait Implementations§
Source§impl<'a> Debug for GitVersion<'a>
impl<'a> Debug for GitVersion<'a>
Source§impl<'a> PartialEq for GitVersion<'a>
impl<'a> PartialEq for GitVersion<'a>
impl<'a> Eq for GitVersion<'a>
impl<'a> StructuralPartialEq for GitVersion<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitVersion<'a>
impl<'a> RefUnwindSafe for GitVersion<'a>
impl<'a> Send for GitVersion<'a>
impl<'a> Sync for GitVersion<'a>
impl<'a> Unpin for GitVersion<'a>
impl<'a> UnwindSafe for GitVersion<'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