pub struct SecurityEvent {
pub Timestamp: u64,
pub EventType: SecurityEventType,
pub Severity: SecuritySeverity,
pub SourceIp: Option<String>,
pub ClientId: Option<String>,
pub Details: String,
pub Metadata: HashMap<String, String>,
}
Expand description
Security event audit log
Fields§
§Timestamp:
u64
Event timestamp
EventType:
SecurityEventType
Event type
Severity:
SecuritySeverity
Event severity
SourceIp:
Option<String>
Source IP address (if applicable)
ClientId:
Option<String>
Client ID (if applicable)
Details:
String
Event details
Metadata:
HashMap<String,
String>
Additional metadata
Trait Implementations§
Source§
impl
Clone
for
SecurityEvent
impl Clone for SecurityEvent
Source§
fn
clone(&self) ->
SecurityEvent
fn clone(&self) -> SecurityEvent
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 more
Source§
impl
Debug
for
SecurityEvent
impl Debug for SecurityEvent
Source§
impl<'de>
Deserialize<'de> for
SecurityEvent
impl<'de> Deserialize<'de> for SecurityEvent
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
Auto Trait Implementations§
impl Freeze for SecurityEvent
impl RefUnwindSafe for SecurityEvent
impl Send for SecurityEvent
impl Sync for SecurityEvent
impl Unpin for SecurityEvent
impl UnsafeUnpin for SecurityEvent
impl UnwindSafe for SecurityEvent
Blanket Implementations§
Source§
impl<T>
BorrowMut<T> for T
where T: ?Sized,
impl<T>
BorrowMut<T> for T
where 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 T
where T:
Clone,
impl<T>
CloneToUninit
for T
where T:
Clone,
§
impl<T> Instrument for T
impl<T> Instrument for T
§
fn
instrument(self, span: Span) ->
Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§
fn
in_current_span(self) ->
Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§
impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§
fn
into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in
a tonic::Request
§
impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§
fn
named_layer<S>(&self, service:
S) -> Layered<<L as
Layer<S>>::Service,
S>
where L: Layer<S>,
fn
named_layer<S>(&self, service:
S) -> Layered<<L as
Layer<S>>::Service,
S>
where L: Layer<S>,
Applies the layer to a service and wraps
it in [
Layered].