SystemInfoResponse
Rust struct goodmem::models::SystemInfoResponse: declaration, fields or variants, and implementations.
Struct SystemInfoResponse
goodmem::models::SystemInfoResponse
pub struct SystemInfoResponse {
pub version: String,
pub major: i32,
pub minor: i32,
pub patch: i32,
pub dirty: bool,
pub git_commit: Option<String>,
pub git_describe: Option<String>,
pub build_time: Option<String>,
pub capabilities: Option<BTreeMap<String, String>>,
}Fields
version
pub version: String
Semantic version string advertised by the running server.
Wire name: version.
major
pub major: i32
Major version component parsed from the advertised semantic version.
Wire name: major.
minor
pub minor: i32
Minor version component parsed from the advertised semantic version.
Wire name: minor.
patch
pub patch: i32
Patch version component parsed from the advertised semantic version.
Wire name: patch.
dirty
pub dirty: bool
Whether the running build reports uncommitted workspace changes.
Wire name: dirty.
git_commit
pub git_commit: Option<String>
Git commit SHA baked into the build, when available.
Wire name: gitCommit.
git_describe
pub git_describe: Option<String>
Git describe output baked into the build, when available.
Wire name: gitDescribe.
build_time
pub build_time: Option<String>
Build timestamp recorded for this server binary, when available.
Wire name: buildTime.
capabilities
pub capabilities: Option<BTreeMap<String, String>>
Optional capability flags or metadata advertised by the running server.
Wire name: capabilities.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for SystemInfoResponseimpl std::fmt::Debug for SystemInfoResponse