pub struct HostInfo {
pub arch: String,
pub os: Option<String>,
pub os_version: Option<String>,
pub kernel_version: Option<String>,
pub hostname: Option<String>,
pub machine_id: Option<String>,
pub cpu_model: Option<String>,
pub hardening: Option<Hardening>,
}Expand description
Identity of the host machine. A property of the environment, the weakly verifiable end of the trust boundary (an operator assertion that software can only partly corroborate).
Optional fields are populated depending on the gathering scope: a cheap
startup snapshot fills only the always-present basics, while the
machine_info action fills the full set.
Fields§
§arch: StringCPU architecture (std::env::consts::ARCH). Always present.
os: Option<String>OS name (e.g. "Linux", "Darwin").
os_version: Option<String>Long OS version string.
kernel_version: Option<String>Kernel version.
hostname: Option<String>Hostname.
machine_id: Option<String>Hashed machine identifier (SHA-256), when available.
cpu_model: Option<String>CPU brand string.
hardening: Option<Hardening>Platform security posture, when gathered at full scope.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostInfo
impl<'de> Deserialize<'de> for HostInfo
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
Auto Trait Implementations§
impl Freeze for HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnsafeUnpin for HostInfo
impl UnwindSafe for HostInfo
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