Struct build_info::BuildInfo[][src]

pub struct BuildInfo {
    pub version: &'static str,
    pub sha: &'static str,
    pub time: &'static str,
    pub target_triple: &'static str,

Build information.


version: &'static str

The version number of the build.

sha: &'static str

The 40-character SHA-1 hash identifying the Git commit of the build.

time: &'static str

The time of the build in UTC as an ISO 8601-compliant string.

target_triple: &'static str

The target triple of the platform.


impl BuildInfo[src]

pub fn human_version(&self) -> String[src]

Constructs a human-readable version string.

Trait Implementations

impl Clone for BuildInfo[src]

impl Debug for BuildInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for BuildInfo[src]

impl Send for BuildInfo[src]

impl Sync for BuildInfo[src]

impl Unpin for BuildInfo[src]

impl UnwindSafe for BuildInfo[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.