pub struct GitVersion {
pub version: String,
pub distance: u32,
pub commit: String,
pub dirty: bool,
pub tag: String,
}Expand description
Git version information
Fields§
§version: StringThe base version from the tag
distance: u32Number of commits since the tag
commit: StringShort commit hash
dirty: boolWhether the working tree is dirty
tag: StringThe full tag name
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 moreAuto 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