#[non_exhaustive]pub enum ImpersonationEvent {
Started {
user_id: String,
user_name: Option<String>,
until: Option<Timestamp>,
},
Stopped {
user_id: String,
user_name: Option<String>,
},
}Expand description
A start or a stop of acting as a user, as AuditEntry::impersonation reads it. The entry’s
actor is who acted; this names whom they acted as.
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.
Started
The actor started acting as the user.
Fields
§
user_id: StringThe user’s PanelUser::user_id.
Stopped
The actor stopped acting as the user.
Trait Implementations§
Source§impl Clone for ImpersonationEvent
impl Clone for ImpersonationEvent
Source§impl Debug for ImpersonationEvent
impl Debug for ImpersonationEvent
impl Eq for ImpersonationEvent
Source§impl PartialEq for ImpersonationEvent
impl PartialEq for ImpersonationEvent
impl StructuralPartialEq for ImpersonationEvent
Auto Trait Implementations§
impl Freeze for ImpersonationEvent
impl RefUnwindSafe for ImpersonationEvent
impl Send for ImpersonationEvent
impl Sync for ImpersonationEvent
impl Unpin for ImpersonationEvent
impl UnsafeUnpin for ImpersonationEvent
impl UnwindSafe for ImpersonationEvent
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.