#[non_exhaustive]pub enum AuditEventType {
Show 16 variants
ToolAccess,
AgentAccess,
PermissionCheck,
Authentication,
Authorization,
ResourceCreated,
ResourceUpdated,
ResourceDeleted,
ConfigChanged,
SecretAccessed,
SecretRotated,
PaymentExecuted,
PolicyEvaluated,
SessionStarted,
SessionEnded,
Custom(String),
}Available on crate feature
auth only.Expand description
Type of audit event.
Covers access control, resource lifecycle, configuration changes, and
platform-specific operations. Use Custom(String) for platform extensions
without forking the crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ToolAccess
Tool access attempt.
AgentAccess
Agent access attempt.
PermissionCheck
Permission check.
Authentication
Authentication event (login, token refresh, logout).
Authorization
Authorization decision (role/policy evaluation).
ResourceCreated
Resource created (agent, workspace, project).
ResourceUpdated
Resource updated.
ResourceDeleted
Resource deleted.
ConfigChanged
Configuration changed (settings, feature flags).
SecretAccessed
Secret accessed (read from vault).
SecretRotated
Secret rotated (key rotation event).
PaymentExecuted
Payment executed (billing event).
PolicyEvaluated
Policy evaluated (guardrail, rate limit).
SessionStarted
Session started.
SessionEnded
Session ended.
Custom(String)
Platform-specific custom event type.
Trait Implementations§
Source§impl Clone for AuditEventType
impl Clone for AuditEventType
Source§fn clone(&self) -> AuditEventType
fn clone(&self) -> AuditEventType
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 AuditEventType
impl Debug for AuditEventType
Source§impl<'de> Deserialize<'de> for AuditEventType
impl<'de> Deserialize<'de> for AuditEventType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuditEventType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuditEventType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuditEventType
impl PartialEq for AuditEventType
Source§fn eq(&self, other: &AuditEventType) -> bool
fn eq(&self, other: &AuditEventType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuditEventType
impl Serialize for AuditEventType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AuditEventType
impl StructuralPartialEq for AuditEventType
Auto Trait Implementations§
impl Freeze for AuditEventType
impl RefUnwindSafe for AuditEventType
impl Send for AuditEventType
impl Sync for AuditEventType
impl Unpin for AuditEventType
impl UnsafeUnpin for AuditEventType
impl UnwindSafe for AuditEventType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.