#[non_exhaustive]pub struct AuditRecord {Show 24 fields
pub at: u64,
pub level: AuditLevel,
pub actor: String,
pub action: AuditAction,
pub object: String,
pub outcome: AuditOutcome,
pub grant: Option<GrantSummary>,
pub role: Option<RoleChange>,
pub violations: Vec<String>,
pub suggestions: Vec<Suggestion>,
pub decision: Option<DecisionSummary>,
pub pending: Option<PendingRef>,
pub recert: Option<RecertRef>,
pub full_grant: Option<Grant>,
pub resource: Option<Resource>,
pub explanation: Option<Box<Explanation>>,
pub tuple: Option<Tuple>,
pub actor_detail: Option<Subject>,
pub meta: Attributes,
pub impact: Option<ImpactSummary>,
pub before_digest: Option<String>,
pub after_digest: Option<String>,
pub prev_hash: Option<String>,
pub hash: Option<String>,
}Expand description
One record of the trail. The optional fields appear depending on the level.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at: u64Milliseconds since the Unix epoch.
level: AuditLevel§actor: StringActor id, or its kind when anonymous.
action: AuditAction§object: StringGrant id, the tuple’s object#relation@subject, or role@subject for a role change,
with the scope after the role when there is one (role#scope@subject).
outcome: AuditOutcome§grant: Option<GrantSummary>§role: Option<RoleChange>§violations: Vec<String>Names of the invariants (standard) or name: message (detailed and above).
suggestions: Vec<Suggestion>Compensating changes the refusing invariants proposed (see Violation::suggestion), from
standard upward: the subject id and the role, nothing else. Nothing was applied.
decision: Option<DecisionSummary>§pending: Option<PendingRef>The request of an approval-flow record, from standard upward.
recert: Option<RecertRef>The campaign of a recertification record, from standard upward.
full_grant: Option<Grant>§resource: Option<Resource>Full resource of a decision, from detailed upward. With actor_detail, it is enough to
re-evaluate the decision against another policy.
explanation: Option<Box<Explanation>>Full trace of the decision, at forensic.
tuple: Option<Tuple>§actor_detail: Option<Subject>§meta: Attributes§impact: Option<ImpactSummary>What the change does to access (counts and a few examples), from detailed upward, on a change
recorded with Governance::apply_with_impact.
before_digest: Option<String>Digest of the grant set before the change. For a role change, the digest of the subject’s roles.
after_digest: Option<String>Digest of the grant set after the change (equal to the previous one on a refusal). For a role change, the digest of the subject’s roles.
prev_hash: Option<String>§hash: Option<String>