| 1 | use crate::*; |
| 2 | |
| 3 | /// A parsed message corresponding to a single line from the Linux Audit log |
| 4 | #[derive(Debug, Clone)] |
| 5 | pub struct Message<'a> { |
| 6 | /// The identifier of the audit event, corresponding to `msg=audit(…)` in audit log lines |
| 7 | pub id: EventID, |
| 8 | /// The optional node name, corresponding to `node=…` in audit log lines |
| 9 | pub node: Option<Vec<u8>>, |
| 10 | /// Message type, corresponding to `type=…` in audit log lines |
| 11 | pub ty: MessageType, |
| 12 | /// The set of key/value parirs |
| 13 | pub body: Body<'a>, |
| 14 | } |