pub struct AuditRecord {
pub actor: String,
pub target_host: String,
pub operation: String,
pub unit: String,
pub result: String,
pub error: Option<String>,
pub correlation_id: String,
pub timestamp_unix_ms: u128,
}Expand description
One audit event describing an attempted or completed mutation.
Fields§
§actor: StringIdentity that initiated the operation (see actor).
target_host: StringHost the operation targets.
operation: StringThe mutation performed (e.g. start, stop, restart).
unit: StringThe systemd unit the operation acts on.
result: String“attempt” | “ok” | “error”
error: Option<String>Error detail when result is "error", otherwise omitted.
correlation_id: StringCorrelation id linking all records for one invocation (see correlation_id).
timestamp_unix_ms: u128Record creation time as Unix milliseconds.
Trait Implementations§
Source§impl Clone for AuditRecord
impl Clone for AuditRecord
Source§fn clone(&self) -> AuditRecord
fn clone(&self) -> AuditRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditRecord
impl Debug for AuditRecord
Auto Trait Implementations§
impl Freeze for AuditRecord
impl RefUnwindSafe for AuditRecord
impl Send for AuditRecord
impl Sync for AuditRecord
impl Unpin for AuditRecord
impl UnsafeUnpin for AuditRecord
impl UnwindSafe for AuditRecord
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