[][src]Struct build_info::GitInformation

pub struct GitInformation {
    pub commit_hash: String,
    pub dirty: bool,
    pub name: Option<String>,
}

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_hash: String

Currently checked out git commit hash

dirty: bool

true iff the repository had uncommitted changes when building the project.

name: Option<String>

A friendly name for the currently checked out commit (e.g., master)

Trait Implementations

impl Clone for GitInformation[src]

impl Debug for GitInformation[src]

impl<'de> Deserialize<'de> for GitInformation[src]

impl Eq for GitInformation[src]

impl Hash for GitInformation[src]

impl Ord for GitInformation[src]

impl PartialEq<GitInformation> for GitInformation[src]

impl PartialOrd<GitInformation> for GitInformation[src]

impl Serialize for GitInformation[src]

impl StructuralEq for GitInformation[src]

impl StructuralPartialEq for GitInformation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.