pub struct SoftwareStatesPayload {
pub tenant_id: Uuid,
pub items: Vec<SoftwareStateItem>,
pub host_summaries: Vec<HostPackageSummary>,
pub hosts: Vec<HostStateMetadata>,
pub page: SoftwareStatesPage,
}Expand description
Controller -> MQTT service: current software version state for a tenant.
Sent after tenant assignment and after any version check or update result. Safe to write to the outbox (contains no credentials).
Large tenants use multi-page delivery. The page field indicates which
page this payload represents. Receivers must accumulate all pages before
applying the full state update (see page_index + 1 == total_pages for
the last-page signal).
Fields§
§tenant_id: UuidTenant this state belongs to.
items: Vec<SoftwareStateItem>All active software items for the tenant with per-host version data.
host_summaries: Vec<HostPackageSummary>Per-host aggregate summary of unpinned (unfeatured) software items.
Each entry summarises all enabled, non-deactivated unfeatured items for one host. Only hosts with at least one such item are included. Defaults to an empty list on deserialization for backward compatibility with older MQTT services.
hosts: Vec<HostStateMetadata>Per-host metadata for all hosts referenced in items or host_summaries.
Includes OS info, tags, and agent last-seen data. Sourced exclusively from DB. Defaults to an empty list for backward compatibility with older MQTT services.
page: SoftwareStatesPagePagination metadata indicating which page this payload represents.
Trait Implementations§
Source§impl Clone for SoftwareStatesPayload
impl Clone for SoftwareStatesPayload
Source§fn clone(&self) -> SoftwareStatesPayload
fn clone(&self) -> SoftwareStatesPayload
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 SoftwareStatesPayload
impl Debug for SoftwareStatesPayload
Source§impl<'de> Deserialize<'de> for SoftwareStatesPayload
impl<'de> Deserialize<'de> for SoftwareStatesPayload
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 SoftwareStatesPayload
Source§impl PartialEq for SoftwareStatesPayload
impl PartialEq for SoftwareStatesPayload
Source§fn eq(&self, other: &SoftwareStatesPayload) -> bool
fn eq(&self, other: &SoftwareStatesPayload) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SoftwareStatesPayload
impl Serialize for SoftwareStatesPayload
impl StructuralPartialEq for SoftwareStatesPayload
Source§impl WireValidate for SoftwareStatesPayload
impl WireValidate for SoftwareStatesPayload
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Auto Trait Implementations§
impl Freeze for SoftwareStatesPayload
impl RefUnwindSafe for SoftwareStatesPayload
impl Send for SoftwareStatesPayload
impl Sync for SoftwareStatesPayload
impl Unpin for SoftwareStatesPayload
impl UnsafeUnpin for SoftwareStatesPayload
impl UnwindSafe for SoftwareStatesPayload
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.