srum_core/id_map.rs
1//! ID map entry — maps integer IDs to application/user string names.
2//!
3//! Source table: `SruDbIdMapTable` in SRUDB.dat.
4
5use serde::{Deserialize, Serialize};
6
7/// Maps an integer SRUM ID to a human-readable application or user name.
8///
9/// App IDs in [`crate::NetworkUsageRecord`] and [`crate::AppUsageRecord`]
10/// are opaque integers; this table resolves them to strings like
11/// `"\\Device\\HarddiskVolume3\\Windows\\explorer.exe"`.
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct IdMapEntry {
14 /// The integer ID used as a foreign key in SRUM tables.
15 pub id: i32,
16 /// The resolved application or user name string.
17 pub name: String,
18}