pub struct Version {
pub build: String,
pub commit: String,
pub rustc_version: String,
pub version: String,
}
Expand description
Data structure for semver version and github tag or commit.
JSON schema
{
"description": "Data structure for semver version and github tag or commit.",
"type": "object",
"required": [
"build",
"commit",
"version"
],
"properties": {
"build": {
"type": "string"
},
"commit": {
"type": "string"
},
"rustc_version": {
"default": "",
"type": "string"
},
"version": {
"type": "string"
}
}
}
Fields§
§build: String
§commit: String
§rustc_version: String
§version: String
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 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