Show the detected machine type in device inventory
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
//! Additive bounded passive metadata; the strict original Inventory stays intact.
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::Deserialize;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::Value;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum DeviceType {
|
||||
Physical,
|
||||
Virtual,
|
||||
Hypervisor,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct Observation {
|
||||
|
||||
Reference in New Issue
Block a user