pub struct AuditActor {
pub id: Option<String>,
pub claims: BTreeMap<String, Value>,
pub ip: Option<String>,
}Fields§
§id: Option<String>Actor identifier — typically the user id from the auth context. Omit when the operation runs without an authenticated principal (system jobs, migrations).
claims: BTreeMap<String, Value>Free-form claims captured from the auth context at the time of the operation. Banks use this for role/scope replay during forensics.
ip: Option<String>Source IP recorded by the transport layer, if available.
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 · 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
Source§impl Default for AuditActor
impl Default for AuditActor
Source§fn default() -> AuditActor
fn default() -> AuditActor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditActor
impl<'de> Deserialize<'de> for AuditActor
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
Source§impl PartialEq for AuditActor
impl PartialEq for AuditActor
Source§impl Serialize for AuditActor
impl Serialize for AuditActor
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