Struct mz_build_info::BuildInfo
source · pub struct BuildInfo {
pub version: &'static str,
pub sha: &'static str,
pub time: &'static str,
}
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§
source§impl BuildInfo
impl BuildInfo
sourcepub fn human_version(&self, helm_chart_version: Option<String>) -> String
pub fn human_version(&self, helm_chart_version: Option<String>) -> 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.
sourcepub fn version_num(&self) -> i32
pub fn version_num(&self) -> i32
Returns the version as an integer along the lines of Pg’s server_version_num
Trait Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)