pub struct ReportHostsPayload {
pub hosts: Vec<HostInfo>,
pub agent_version: String,
pub capabilities: BTreeSet<Capability>,
}Expand description
Payload for reporting host information (sent by authenticated agents on connect).
Supports multiple hosts per message, enabling a single service instance (e.g. a future SSH-backed agent) to manage several remote hosts.
Fields§
§hosts: Vec<HostInfo>One or more host machines managed by this service.
agent_version: StringAgent binary version (e.g., “0.0.1”).
capabilities: BTreeSet<Capability>Capabilities advertised by this service.
The controller computes the agreed set as the intersection of this set with its own capabilities, considering only typed (known) variants.
Trait Implementations§
Source§impl Clone for ReportHostsPayload
impl Clone for ReportHostsPayload
Source§fn clone(&self) -> ReportHostsPayload
fn clone(&self) -> ReportHostsPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReportHostsPayload
impl Debug for ReportHostsPayload
Source§impl<'de> Deserialize<'de> for ReportHostsPayload
impl<'de> Deserialize<'de> for ReportHostsPayload
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
impl Eq for ReportHostsPayload
Source§impl Paginatable for ReportHostsPayload
impl Paginatable for ReportHostsPayload
Source§fn with_items(&self, items: Vec<Self::Item>) -> Self
fn with_items(&self, items: Vec<Self::Item>) -> Self
Reconstruct the payload with a subset of items.
Source§fn into_message(self) -> ServiceMessage
fn into_message(self) -> ServiceMessage
Wrap the payload into a
ServiceMessage.Source§fn max_items_per_page(limits: &ReportPageLimits) -> usize
fn max_items_per_page(limits: &ReportPageLimits) -> usize
Maximum number of items allowed on a single page for this payload type.
Source§impl PartialEq for ReportHostsPayload
impl PartialEq for ReportHostsPayload
Source§impl Serialize for ReportHostsPayload
impl Serialize for ReportHostsPayload
impl StructuralPartialEq for ReportHostsPayload
Source§impl WireValidate for ReportHostsPayload
impl WireValidate for ReportHostsPayload
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Validate that all fields are within wire protocol size limits.
Auto Trait Implementations§
impl Freeze for ReportHostsPayload
impl RefUnwindSafe for ReportHostsPayload
impl Send for ReportHostsPayload
impl Sync for ReportHostsPayload
impl Unpin for ReportHostsPayload
impl UnsafeUnpin for ReportHostsPayload
impl UnwindSafe for ReportHostsPayload
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
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
Compare self to
key and return true if they are equal.