pub struct SecurityContext {
pub user_id: String,
pub ip_address: String,
pub timestamp: DateTime<Utc>,
pub session_id: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
Security context for operations
Fields§
§user_id: StringUser performing the operation
ip_address: StringIP address of the request
timestamp: DateTime<Utc>Request timestamp
session_id: Option<String>Session identifier
metadata: HashMap<String, String>Additional metadata
Implementations§
Trait Implementations§
Source§impl Clone for SecurityContext
impl Clone for SecurityContext
Source§fn clone(&self) -> SecurityContext
fn clone(&self) -> SecurityContext
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 moreAuto Trait Implementations§
impl Freeze for SecurityContext
impl RefUnwindSafe for SecurityContext
impl Send for SecurityContext
impl Sync for SecurityContext
impl Unpin for SecurityContext
impl UnwindSafe for SecurityContext
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