pub struct VersionCheckResult {
pub software_item_id: Uuid,
pub installed_version: Option<String>,
pub latest_version: Option<String>,
pub error: Option<String>,
pub update_category: UpdateCategory,
pub host_software_item_id: Option<Uuid>,
pub installed_display_version: Option<String>,
pub not_ready: Option<bool>,
}Expand description
Result of a single version check.
Fields§
§software_item_id: UuidSoftware item ID.
installed_version: Option<String>Detected installed version, if any.
latest_version: Option<String>Latest available version from the package index, if resolved locally by the agent (e.g., Homebrew). Absent for plugins whose latest version is resolved on the controller side.
error: Option<String>Error message if detection failed.
update_category: UpdateCategoryClassification of the available update (e.g. security, bugfix).
Defaults to Unknown when the plugin cannot classify the update.
host_software_item_id: Option<Uuid>Host software item ID for routing results to the host_software_items table.
Mirrors the value from the corresponding VersionCheckAssignment.
installed_display_version: Option<String>Human-readable installed version for display when installed_version
is opaque (e.g. a Docker SHA256 digest → the image publish date).
Set by the agent from BatchDetectResult.display_version.
None when the plugin does not provide a display version.
not_ready: Option<bool>When true, the agent is not yet ready to report a meaningful version
for this item (e.g. a self-update is in progress and the binary has not
restarted yet). The controller should treat this as “check again later”
rather than clearing the installed version.
None / absent means “ready” for wire backward compatibility.
Trait Implementations§
Source§impl Clone for VersionCheckResult
impl Clone for VersionCheckResult
Source§fn clone(&self) -> VersionCheckResult
fn clone(&self) -> VersionCheckResult
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 VersionCheckResult
impl Debug for VersionCheckResult
Source§impl<'de> Deserialize<'de> for VersionCheckResult
impl<'de> Deserialize<'de> for VersionCheckResult
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>,
impl Eq for VersionCheckResult
Source§impl PartialEq for VersionCheckResult
impl PartialEq for VersionCheckResult
Source§impl Serialize for VersionCheckResult
impl Serialize for VersionCheckResult
impl StructuralPartialEq for VersionCheckResult
Source§impl WireValidate for VersionCheckResult
impl WireValidate for VersionCheckResult
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Auto Trait Implementations§
impl Freeze for VersionCheckResult
impl RefUnwindSafe for VersionCheckResult
impl Send for VersionCheckResult
impl Sync for VersionCheckResult
impl Unpin for VersionCheckResult
impl UnsafeUnpin for VersionCheckResult
impl UnwindSafe for VersionCheckResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.