pub struct SecurityEvent {
pub event_type: String,
/* private fields */
}Expand description
Security event
Fields§
§event_type: StringEvent type
Implementations§
Source§impl SecurityEvent
impl SecurityEvent
Sourcepub fn new(
event_type: String,
encrypted: bool,
plaintext_credentials: bool,
) -> Self
pub fn new( event_type: String, encrypted: bool, plaintext_credentials: bool, ) -> Self
Create new security event
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Check if event is encrypted
Sourcepub fn contains_plaintext_credentials(&self) -> bool
pub fn contains_plaintext_credentials(&self) -> bool
Check if event contains plaintext credentials (should never happen)
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 moreAuto Trait Implementations§
impl Freeze for SecurityEvent
impl RefUnwindSafe for SecurityEvent
impl Send for SecurityEvent
impl Sync for SecurityEvent
impl Unpin for SecurityEvent
impl UnwindSafe for SecurityEvent
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