pub struct AuditLog {Show 13 fields
pub workspace_id: String,
pub id: i32,
pub timestamp: String,
pub username: String,
pub operation: Operation,
pub action_kind: ActionKind,
pub resource: Option<String>,
pub parameters: Option<Value>,
pub span: Option<String>,
pub client_ip: Option<String>,
pub user_agent: Option<String>,
pub peer_ip: Option<String>,
pub forwarded_for: Option<String>,
}Fields§
§workspace_id: String§id: i32§timestamp: String§username: String§operation: Operation§action_kind: ActionKind§resource: Option<String>§parameters: Option<Value>§span: Option<String>§client_ip: Option<String>Address of the client that made the request. Forwarding headers are believed only from the proxies listed in the TRUSTED_PROXIES environment variable, or, when it is unset, from loopback and the private ranges, where a reverse proxy usually sits. Any host that reaches the server directly from a private address can then name any address here; peer_ip and forwarded_for tell such an entry apart. Absent on entries no request stands behind.
user_agent: Option<String>User-Agent header of the request.
peer_ip: Option<String>Address the connection itself came from, when it is not client_ip (the proxy that forwarded the request).
forwarded_for: Option<String>The forwarding header as the request carried it (CLIENT_IP_HEADER when set, else X-Forwarded-For), whether or not its sender was trusted.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuditLog
impl<'de> Deserialize<'de> for AuditLog
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
impl StructuralPartialEq for AuditLog
Auto Trait Implementations§
impl Forget for AuditLog
impl Freeze for AuditLogwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for AuditLog
impl RefUnwindSafe for AuditLog
impl Send for AuditLog
impl Sync for AuditLog
impl Unpin for AuditLog
impl UnsafeUnpin for AuditLogwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for AuditLog
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