pub enum AuditEvent {
KeyCreated {
key_id: String,
algorithm: Algorithm,
version: u32,
},
KeyAccessed {
key_id: String,
operation: String,
},
KeyRotated {
base_id: String,
old_version: u32,
new_version: u32,
},
KeyStateChanged {
key_id: String,
old_state: KeyState,
new_state: KeyState,
},
KeyDeleted {
key_id: String,
version: u32,
},
AuthenticationAttempt {
success: bool,
storage_path: String,
},
EncryptionPerformed {
key_id: String,
data_size: usize,
},
DecryptionPerformed {
key_id: String,
success: bool,
},
ConfigurationChanged {
setting: String,
old_value: String,
new_value: String,
},
ErrorOccurred {
operation: String,
error_type: String,
message: String,
},
}Expand description
Types of auditable events
Variants§
KeyCreated
Key was created
Fields
KeyAccessed
Key was retrieved/accessed
Fields
KeyRotated
Key was rotated to a new version
Fields
KeyStateChanged
Key state changed
Fields
KeyDeleted
Key was deleted
AuthenticationAttempt
Authentication attempt (password-based unlock)
Fields
EncryptionPerformed
Encryption operation performed
Fields
DecryptionPerformed
Decryption operation performed
Fields
ConfigurationChanged
Configuration changed
Fields
ErrorOccurred
Error occurred
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§fn clone(&self) -> AuditEvent
fn clone(&self) -> AuditEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 AuditEvent
impl Debug for AuditEvent
Source§impl<'de> Deserialize<'de> for AuditEvent
impl<'de> Deserialize<'de> for AuditEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnwindSafe for AuditEvent
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