Struct build_info::BuildInfo
source · pub struct BuildInfo {
pub timestamp: DateTime<Utc>,
pub profile: String,
pub optimization_level: OptimizationLevel,
pub crate_info: CrateInfo,
pub target: TargetInfo,
pub compiler: CompilerInfo,
pub version_control: Option<VersionControl>,
}Expand description
Information about the current build
Fields§
§timestamp: DateTime<Utc>Updated whenever build.rs is rerun.
profile: StringCargo currently supports two different build types: "Release" and "Debug"
optimization_level: OptimizationLevelThe optimization level can be set in Cargo.toml for each profile
crate_info: CrateInfoInformation about the current crate
target: TargetInfoInformation about the target system
compiler: CompilerInfoInformation 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§
source§impl Ord for BuildInfo
impl Ord for BuildInfo
source§impl PartialEq<BuildInfo> for BuildInfo
impl PartialEq<BuildInfo> for BuildInfo
source§impl PartialOrd<BuildInfo> for BuildInfo
impl PartialOrd<BuildInfo> for BuildInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for BuildInfo
impl StructuralEq for BuildInfo
impl StructuralPartialEq for BuildInfo
Auto Trait Implementations§
impl RefUnwindSafe for BuildInfo
impl Send for BuildInfo
impl Sync for BuildInfo
impl Unpin for BuildInfo
impl UnwindSafe for BuildInfo
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