pub struct AuditLogContext {
pub country: Option<String>,
pub ip: Option<String>,
pub metadata: Option<Value>,
pub user_agent: Option<String>,
}Expand description
AuditLogContext : Request context at the time of the event. Absent if context was not captured.
Fields§
§country: Option<String>Country code derived from the request IP.
ip: Option<String>IP address the request originated from.
metadata: Option<Value>Additional context-specific data.
user_agent: Option<String>User agent of the client that made the request.
Implementations§
Source§impl AuditLogContext
impl AuditLogContext
Sourcepub fn new() -> AuditLogContext
pub fn new() -> AuditLogContext
Request context at the time of the event. Absent if context was not captured.
Trait Implementations§
Source§impl Clone for AuditLogContext
impl Clone for AuditLogContext
Source§fn clone(&self) -> AuditLogContext
fn clone(&self) -> AuditLogContext
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 AuditLogContext
impl Debug for AuditLogContext
Source§impl Default for AuditLogContext
impl Default for AuditLogContext
Source§fn default() -> AuditLogContext
fn default() -> AuditLogContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditLogContext
impl<'de> Deserialize<'de> for AuditLogContext
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 AuditLogContext
impl PartialEq for AuditLogContext
Source§impl Serialize for AuditLogContext
impl Serialize for AuditLogContext
impl StructuralPartialEq for AuditLogContext
Auto Trait Implementations§
impl Freeze for AuditLogContext
impl RefUnwindSafe for AuditLogContext
impl Send for AuditLogContext
impl Sync for AuditLogContext
impl Unpin for AuditLogContext
impl UnsafeUnpin for AuditLogContext
impl UnwindSafe for AuditLogContext
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