Struct build_info::BuildInfo [−][src]
pub struct BuildInfo {
pub timestamp: DateTime<Utc>,
pub profile: String,
pub optimization_level: u8,
pub crate_info: CrateInfo,
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: u8The optimization level can be set in Cargo.toml for each profile
crate_info: CrateInfoInformation about the current crate
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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BuildInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BuildInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BuildInfoimpl UnwindSafe for BuildInfoBlanket Implementations
Mutably borrows from an owned value. Read more