pub struct TenantEvent {
pub tenant_key: String,
pub event: TenantEventKind,
pub actor: Option<String>,
pub payload: Option<Value>,
pub occurred_at: String,
}Expand description
A single audit trail event.
Fields§
§tenant_key: StringThe tenant key this event relates to.
event: TenantEventKindThe kind of lifecycle event.
actor: Option<String>The actor who triggered the event (JWT sub claim or "admin_token").
payload: Option<Value>Event-specific metadata (e.g., quota changes, config diffs).
occurred_at: StringWhen the event occurred (ISO 8601).
Trait Implementations§
Source§impl Clone for TenantEvent
impl Clone for TenantEvent
Source§fn clone(&self) -> TenantEvent
fn clone(&self) -> TenantEvent
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 TenantEvent
impl Debug for TenantEvent
Auto Trait Implementations§
impl Freeze for TenantEvent
impl RefUnwindSafe for TenantEvent
impl Send for TenantEvent
impl Sync for TenantEvent
impl Unpin for TenantEvent
impl UnsafeUnpin for TenantEvent
impl UnwindSafe for TenantEvent
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more