#[non_exhaustive]pub struct AccessContext {
pub key_name: String,
pub note: Cow<'static, str>,
}Expand description
Context for a successful access that the monitor flagged as anomalous — unusual caller, unusual frequency, off-hours activity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key_name: StringLogical name of the key that was accessed.
note: Cow<'static, str>Caller-supplied free-form note. Sanitized.
Trait Implementations§
Source§impl Clone for AccessContext
impl Clone for AccessContext
Source§fn clone(&self) -> AccessContext
fn clone(&self) -> AccessContext
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 moreAuto Trait Implementations§
impl Freeze for AccessContext
impl RefUnwindSafe for AccessContext
impl Send for AccessContext
impl Sync for AccessContext
impl Unpin for AccessContext
impl UnsafeUnpin for AccessContext
impl UnwindSafe for AccessContext
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