Struct build_info_common::GitInfo
source · pub struct GitInfo {
pub commit_id: String,
pub commit_short_id: String,
pub commit_timestamp: DateTime<Utc>,
pub dirty: bool,
pub branch: Option<String>,
pub tags: Vec<String>,
}Expand description
Information about a git repository
If a git repository is detected (and, thereby, this information included), the build script will be rerun whenever the currently checked out commit changes.
Fields§
§commit_id: StringFull commit hash for the currently checked out commit
commit_short_id: StringShort commit hash for the currently checked out commit
The length of this string depends on the effective value of the git configuration variable core.abbrev, and is
extended to the minimum length required for the id to be unique (at the time it was computed).
commit_timestamp: DateTime<Utc>Timestamp of the currently checked out commit
dirty: booltrue iff the repository had uncommitted changes when building the project.
branch: Option<String>Names the branch that is currently checked out, if any
All tags that point to the current commit (e.g., ["v0.0.10", "sample@v0.0.10"])
Trait Implementations§
source§impl Ord for GitInfo
impl Ord for GitInfo
source§impl PartialOrd for GitInfo
impl PartialOrd for GitInfo
impl Eq for GitInfo
impl StructuralPartialEq for GitInfo
Auto Trait Implementations§
impl Freeze for GitInfo
impl RefUnwindSafe for GitInfo
impl Send for GitInfo
impl Sync for GitInfo
impl Unpin for GitInfo
impl UnwindSafe for GitInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)