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,
}
Expand description

Build information.

Fields

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.

Implementations

Constructs a human-readable version string.

Returns the version as a rich semantic version.

This method is only available when the semver feature is active.

Panics

Panics if the version field is not a valid semantic version.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.