pub struct AuditRecord<'a> {
pub session: &'a str,
pub action: &'a str,
pub bundle_id: Option<&'a str>,
pub pid: Option<i32>,
pub window_id: Option<u32>,
pub element: Option<u32>,
pub code: &'a str,
pub decision: &'a str,
pub source: &'a str,
pub tier: Option<&'a str>,
pub chars: Option<u64>,
}Expand description
One audit record. Fields that would carry typed text are intentionally absent.
Fields§
§session: &'a strSession id, or the process id when the caller did not set one.
action: &'a strAction name such as press or quit. Never the typed text.
bundle_id: Option<&'a str>Bundle id when the target resolved.
pid: Option<i32>Process id when the target resolved.
window_id: Option<u32>Window id when one was targeted.
element: Option<u32>Element index when the action named one.
code: &'a strok or the error code. This is the action outcome, not a constant.
decision: &'a strallow, deny, or confirm.
source: &'a strbuiltin, admin, user, default, or another policy source.
tier: Option<&'a str>Input tier when the action reported one.
chars: Option<u64>Character count for clipboard_set. The text itself is never stored.
Trait Implementations§
Source§impl<'a> Clone for AuditRecord<'a>
impl<'a> Clone for AuditRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuditRecord<'a>
impl<'a> RefUnwindSafe for AuditRecord<'a>
impl<'a> Send for AuditRecord<'a>
impl<'a> Sync for AuditRecord<'a>
impl<'a> Unpin for AuditRecord<'a>
impl<'a> UnsafeUnpin for AuditRecord<'a>
impl<'a> UnwindSafe for AuditRecord<'a>
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