pub struct VersionResult {
pub agent_version: String,
pub target_agent_version: String,
pub target_client_version: Option<String>,
}Expand description
system.version response — agent + client app version pair (the
client may not know its own published “intended” version when
auto-update is in flight, hence why both come from the agent
which owns the manifest).
Fields§
§agent_version: StringCurrent agent binary version (CARGO_PKG_VERSION of the
running agent).
target_agent_version: StringVersion the agent self-updater is currently targeting. Equal
to agent_version in steady state; differs while an update
is downloading or pending restart. Lets the client surface a
“restart pending” banner without scraping logs.
target_client_version: Option<String>Version the client SHOULD be running (published by the
backend through agent_config). The client compares this to
its own CARGO_PKG_VERSION and prompts the user to relaunch
when they differ. None until the backend has published a
pinned client version (Sprint 8 deferred).
Trait Implementations§
Source§impl Clone for VersionResult
impl Clone for VersionResult
Source§fn clone(&self) -> VersionResult
fn clone(&self) -> VersionResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersionResult
impl Debug for VersionResult
Source§impl<'de> Deserialize<'de> for VersionResult
impl<'de> Deserialize<'de> for VersionResult
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>,
Source§impl JsonSchema for VersionResult
impl JsonSchema for VersionResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more