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
Auto Trait Implementations
impl RefUnwindSafe for BuildInfo
impl UnwindSafe for BuildInfo
Blanket Implementations
Mutably borrows from an owned value. Read more