pub struct AuditEvent {
pub subject: String,
pub provider: String,
pub action: &'static str,
pub database: Option<String>,
pub object: String,
pub allowed: bool,
pub reason: Option<String>,
pub path: Option<String>,
pub views: Vec<String>,
pub authz_t: u64,
pub source: String,
}Expand description
One authorization decision, as recorded.
Fields§
§subject: StringSubject of the principal that asked.
provider: StringProvider that vouched for it.
action: &'static strAction name.
database: Option<String>Target database, when the action names one.
object: StringTarget object the check ran against.
allowed: boolWhether the access was permitted.
reason: Option<String>Reason, when denied.
path: Option<String>Relationship path that granted the access.
views: Vec<String>Views the decision was narrowed through.
authz_t: u64Authz database basis the decision was made against.
source: StringName of the authz database.
Implementations§
Source§impl AuditEvent
impl AuditEvent
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§fn clone(&self) -> AuditEvent
fn clone(&self) -> AuditEvent
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 AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request