[][src]Struct build_info::BuildInfo

pub struct BuildInfo {
    pub timestamp: DateTime<Utc>,
    pub profile: String,
    pub optimization_level: u8,
    pub crate_info: CrateInfo,
    pub compiler: CompilerInfo,
    pub version_control: Option<VersionControl>,
}

Information about the current build

Fields

timestamp: DateTime<Utc>

Updated whenever build.rs is rerun.

profile: String

Cargo currently supports two different build types: "Release" and "Debug"

optimization_level: u8

The optimization level can be set in Cargo.toml for each profile

crate_info: CrateInfo

Information about the current crate

compiler: CompilerInfo

Information about the compiler used.

version_control: Option<VersionControl>

Some if the project is inside a check-out of a supported version control system.

Trait Implementations

impl Clone for BuildInfo[src]

impl Debug for BuildInfo[src]

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

impl Display for BuildInfo[src]

impl Eq for BuildInfo[src]

impl Hash for BuildInfo[src]

impl Ord for BuildInfo[src]

impl PartialEq<BuildInfo> for BuildInfo[src]

impl PartialOrd<BuildInfo> for BuildInfo[src]

impl Serialize for BuildInfo[src]

impl StructuralEq for BuildInfo[src]

impl StructuralPartialEq for BuildInfo[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> ToString for T where
    T: Display + ?Sized
[src]

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.