Struct build_info_common::BuildInfo
source · [−]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: String
Cargo currently supports two different build types: "Release"
and "Debug"
optimization_level: u8
The optimization level can be set in Cargo.toml
for each profile
crate_info: CrateInfo
Information about the current crate
compiler: CompilerInfo
Information 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
sourceimpl<'de> Deserialize<'de> for BuildInfo
impl<'de> Deserialize<'de> for BuildInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for BuildInfo
impl Ord for BuildInfo
sourceimpl PartialOrd<BuildInfo> for BuildInfo
impl PartialOrd<BuildInfo> for BuildInfo
sourcefn partial_cmp(&self, other: &BuildInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &BuildInfo) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more