pub enum AuditDecision {
Allow,
Deny {
reason: AuditDenyReason,
},
}Expand description
The decision recorded by a scope check.
Per AUTHZ-S01-output §1: Allow is the affirmative; Deny { reason }
carries the layered-denial detail that the wire response does NOT
surface (per AUTHZ-PRIVACY-4’s no-enumeration policy — the wire stays
generic; the audit log carries the truth).
Variants§
Allow
The check passed; dispatch proceeded.
Deny
The check failed; dispatch responded with the generic deny.
Fields
§
reason: AuditDenyReasonThe layered-denial detail.
Trait Implementations§
Source§impl Clone for AuditDecision
impl Clone for AuditDecision
Source§fn clone(&self) -> AuditDecision
fn clone(&self) -> AuditDecision
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 moreSource§impl Debug for AuditDecision
impl Debug for AuditDecision
Source§impl<'de> Deserialize<'de> for AuditDecision
impl<'de> Deserialize<'de> for AuditDecision
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
Source§impl PartialEq for AuditDecision
impl PartialEq for AuditDecision
Source§fn eq(&self, other: &AuditDecision) -> bool
fn eq(&self, other: &AuditDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuditDecision
impl Serialize for AuditDecision
impl Eq for AuditDecision
impl StructuralPartialEq for AuditDecision
Auto Trait Implementations§
impl Freeze for AuditDecision
impl RefUnwindSafe for AuditDecision
impl Send for AuditDecision
impl Sync for AuditDecision
impl Unpin for AuditDecision
impl UnsafeUnpin for AuditDecision
impl UnwindSafe for AuditDecision
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