this is some ahh stuff

This commit is contained in:
lda
2026-05-03 04:26:24 +07:00 Verified
parent 038d8ee03c
commit 695c64cf8e
3 changed files with 39 additions and 5 deletions
@@ -20,7 +20,7 @@ pub(crate) struct AgentRuntimeStatus {
pub(crate) connected: bool,
}
#[derive(Debug, Default)]
#[derive(Debug)]
struct FleetAccumulator {
device_key: String,
display_name: Option<String>,
@@ -37,6 +37,26 @@ struct FleetAccumulator {
routes: BTreeMap<String, FleetWakeRoute>,
}
impl Default for FleetAccumulator {
fn default() -> Self {
Self {
device_key: String::new(),
display_name: None,
known_device: None,
pinned: false,
ips: BTreeSet::new(),
macs: BTreeSet::new(),
hostnames: BTreeSet::new(),
sources: BTreeSet::new(),
agents: BTreeMap::new(),
first_seen_unix: None,
last_seen_unix: None,
presence: Presence::Offline,
routes: BTreeMap::new(),
}
}
}
pub(crate) fn build_fleet_devices(
known_devices: Vec<KnownDevice>,
agent_devices: Vec<AgentDeviceWithChildren>,