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 PartialOrd for BuildInfo
impl PartialOrd for BuildInfo
impl Eq for BuildInfo
impl StructuralPartialEq for BuildInfo
Auto Trait Implementations§
impl Freeze for BuildInfo
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