pub struct AuditRecord {
pub timestamp: DateTime<Utc>,
pub target_resource: String,
pub privilege: String,
pub access: Access,
pub matching_resource: Option<String>,
pub rule: Option<AccessControlRule>,
pub auth_info: AuthInfo,
pub considered_resources: Vec<String>,
}Fields§
§timestamp: DateTime<Utc>When the event occurred
target_resource: StringThe resource being accessed
privilege: StringThe privilege requested
access: AccessWas access granted or denied?
matching_resource: Option<String>The resource whose ACL provided the decision. If None, no rules matched and the decision was to deny by default.
rule: Option<AccessControlRule>A structured representation of the matching ACL rule
auth_info: AuthInfoA copy of the authentication information used to make the decision
considered_resources: Vec<String>A list of the resource ids that were considered prior to reaching this final disposition; these will be on the inheritance path between the target_resource and the matching_resource (or the root, if there was no matching_resource).
Implementations§
Source§impl AuditRecord
impl AuditRecord
pub fn new( disposition: &ACLQueryDisposition, target_resource: &str, privilege: &str, info: &AuthInfo, considered_resources: Vec<String>, ) -> Self
pub fn disposition(&self) -> ACLQueryDisposition
Trait Implementations§
Source§impl Clone for AuditRecord
impl Clone for AuditRecord
Source§fn clone(&self) -> AuditRecord
fn clone(&self) -> AuditRecord
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 moreSource§impl Debug for AuditRecord
impl Debug for AuditRecord
Source§impl<'de> Deserialize<'de> for AuditRecord
impl<'de> Deserialize<'de> for AuditRecord
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 AuditRecord
impl RefUnwindSafe for AuditRecord
impl Send for AuditRecord
impl Sync for AuditRecord
impl Unpin for AuditRecord
impl UnwindSafe for AuditRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more