#[non_exhaustive]pub struct HostInventory { /* private fields */ }
Expand description
Describes the known contents of a given host at the time of a query. Also used as a payload for the host heartbeat
Implementations§
source§impl HostInventory
impl HostInventory
sourcepub fn components(&self) -> &Vec<ComponentDescription>
pub fn components(&self) -> &Vec<ComponentDescription>
Get information about providers in the inventory
sourcepub fn providers(&self) -> &Vec<ProviderDescription>
pub fn providers(&self) -> &Vec<ProviderDescription>
Get information about providers in the inventory
sourcepub fn friendly_name(&self) -> &str
pub fn friendly_name(&self) -> &str
Get the friendly name of the host
sourcepub fn uptime_human(&self) -> &str
pub fn uptime_human(&self) -> &str
Get a human friendly host uptime description
sourcepub fn uptime_seconds(&self) -> u64
pub fn uptime_seconds(&self) -> u64
Get the number of seconds the host has been up
pub fn builder() -> HostInventoryBuilder
Trait Implementations§
source§impl Clone for HostInventory
impl Clone for HostInventory
source§fn clone(&self) -> HostInventory
fn clone(&self) -> HostInventory
Returns a copy of the value. Read more
1.0.0 · 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 HostInventory
impl Debug for HostInventory
source§impl Default for HostInventory
impl Default for HostInventory
source§fn default() -> HostInventory
fn default() -> HostInventory
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HostInventory
impl<'de> Deserialize<'de> for HostInventory
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
source§impl PartialEq for HostInventory
impl PartialEq for HostInventory
source§impl Serialize for HostInventory
impl Serialize for HostInventory
impl Eq for HostInventory
impl StructuralPartialEq for HostInventory
Auto Trait Implementations§
impl Freeze for HostInventory
impl RefUnwindSafe for HostInventory
impl Send for HostInventory
impl Sync for HostInventory
impl Unpin for HostInventory
impl UnwindSafe for HostInventory
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.