pub struct BuildMetadata {
pub timestamp: &'static str,
pub cargo_debug: &'static str,
pub cargo_features: &'static str,
pub opt_level: &'static str,
pub target_triple: &'static str,
pub git_branch: &'static str,
pub git_describe: &'static str,
pub git_sha: &'static str,
pub git_dirty: &'static str,
}Expand description
Metadata describing the conditions of the build of this software.
Fields§
§timestamp: &'static strBuild Timestamp
cargo_debug: &'static strWhether this build was in Debug mode (true) or Release mode (false)
cargo_features: &'static strFeatures enabled for this build
opt_level: &'static strOptimization level
target_triple: &'static strBuild target triple
git_branch: &'static strGit branch
git_describe: &'static strOutput of git describe
git_sha: &'static strHash of current git commit
git_dirty: &'static strtrue when the source code differed from the commit at the most recent git hash
Auto Trait Implementations§
impl Freeze for BuildMetadata
impl RefUnwindSafe for BuildMetadata
impl Send for BuildMetadata
impl Sync for BuildMetadata
impl Unpin for BuildMetadata
impl UnwindSafe for BuildMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more