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§
source§impl 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.
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