pub enum AuditActor {
User(String),
System,
Job(String),
ApiClient(String),
Anonymous,
}Variants§
User(String)
Concrete end-user. String is consumer-chosen: i64.to_string(),
Uuid rendered, slug — anything stable for the consumer.
System
Background process with no specific user identity (cron, queue worker,
system-driven mutation). Persists actor_id = NULL.
Job(String)
Queued job — the contained string is the job name
(e.g. "stripe.webhook.subscription_updated").
ApiClient(String)
API client — the contained string is the API key id / OAuth client id.
Anonymous
Unauthenticated public action (rare but valid). Persists actor_id = NULL.
Implementations§
Trait Implementations§
Source§impl Clone for AuditActor
impl Clone for AuditActor
Source§fn clone(&self) -> AuditActor
fn clone(&self) -> AuditActor
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 AuditActor
impl Debug for AuditActor
impl Eq for AuditActor
Source§impl PartialEq for AuditActor
impl PartialEq for AuditActor
Source§fn eq(&self, other: &AuditActor) -> bool
fn eq(&self, other: &AuditActor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuditActor
Auto Trait Implementations§
impl Freeze for AuditActor
impl RefUnwindSafe for AuditActor
impl Send for AuditActor
impl Sync for AuditActor
impl Unpin for AuditActor
impl UnsafeUnpin for AuditActor
impl UnwindSafe for AuditActor
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