pub enum AuditDenyReason {
Unauthenticated,
InvalidSession,
MissingScope,
NotAccepted,
TenantBoundary,
RateLimited,
Other,
}Expand description
The per-layer reason a deny occurred.
Captures AUTHZ-0’s layered-denial model (per AUTHZ-S01-output §1): the audit record names which layer rejected the call so operators can reconstruct the chain after the fact. The wire response does NOT carry this discriminator (AUTHZ-PRIVACY-4); it is server-side only.
Variants§
Unauthenticated
No credential / anonymous caller hit a non-public method.
InvalidSession
Credential present but invalid (expired token, unknown sid, etc.).
MissingScope
Authenticated, but the method’s scope is not in the caller’s set.
NotAccepted
Method exists but the perimeter rejected the call (#[plexus::method(deny)]
or similar policy rejection).
TenantBoundary
Tenant resolved, but does not match the data the call references.
RateLimited
Rate-limit policy fired.
Other
Catch-all for layered impls that have not yet earned a dedicated variant. Use sparingly; the wire still goes out generic, but the audit log loses fidelity.
Trait Implementations§
Source§impl Clone for AuditDenyReason
impl Clone for AuditDenyReason
Source§fn clone(&self) -> AuditDenyReason
fn clone(&self) -> AuditDenyReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuditDenyReason
impl Debug for AuditDenyReason
Source§impl<'de> Deserialize<'de> for AuditDenyReason
impl<'de> Deserialize<'de> for AuditDenyReason
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>,
Source§impl Hash for AuditDenyReason
impl Hash for AuditDenyReason
Source§impl PartialEq for AuditDenyReason
impl PartialEq for AuditDenyReason
Source§fn eq(&self, other: &AuditDenyReason) -> bool
fn eq(&self, other: &AuditDenyReason) -> bool
self and other values to be equal, and is used by ==.