pub struct Version {
pub version: String,
pub build: String,
pub commit: String,
pub rustc_version: String,
}Expand description
Data structure for release version and build metadata (git describe, commit, rustc).
Used for protocol version exchange and for constructing version strings in
binaries from build-time env vars (e.g. MEROD_VERSION, MEROD_BUILD).
Fields§
§version: StringRelease version (e.g. from Cargo.toml or git tag).
build: StringBuild identifier (e.g. git describe).
commit: StringGit commit (short).
rustc_version: StringRustc version used to build.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
Source§fn 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
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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