Struct mz_build_info::BuildInfo
source · [−]Expand description
Build information.
Fields
version: &'static str
The version number of the build.
sha: &'static str
The 40-character SHA-1 hash identifying the Git commit of the build.
time: &'static str
The time of the build in UTC as an ISO 8601-compliant string.
Implementations
sourceimpl BuildInfo
impl BuildInfo
sourcepub fn human_version(&self) -> String
pub fn human_version(&self) -> String
Constructs a human-readable version string.
sourcepub fn semver_version(&self) -> Version
pub fn semver_version(&self) -> Version
Returns the version as a rich semantic version.
This method is only available when the semver
feature is active.
Panics
Panics if the version
field is not a valid semantic version.
Trait Implementations
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 · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more