pub enum DenyReason {
MissingScope {
scope: String,
},
TenantBoundary,
NotAccepted,
MissingGrant {
grant: String,
scope: String,
roles: Vec<String>,
held_on: Vec<String>,
},
}Expand description
Why an authenticated caller was refused. Flattened into
RemoteError::Forbidden under the reason key.
Each variant carries at most the single fact the caller already failed (AUTHZ-CORE-1/5, rendered per AUTHZ-PRIVACY-4): the first unmet scope, never the method’s full requirement set or the registry’s taxonomy.
Variants§
MissingScope
The caller’s scopes do not include scope — the first unmet one.
TenantBoundary
The call reaches across the caller’s tenant boundary.
NotAccepted
The call was not accepted in the caller’s action context.
MissingGrant
AUTH-2: the grant gate’s refusal — the caller does not hold grant
on scope. Names what was needed and where the caller does hold it
(owner, 2026-10-10: “return the grants required to hit an
endpoint”).
Trait Implementations§
Source§impl Clone for DenyReason
impl Clone for DenyReason
Source§impl Debug for DenyReason
impl Debug for DenyReason
Source§impl<'de> Deserialize<'de> for DenyReason
impl<'de> Deserialize<'de> for DenyReason
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
impl Eq for DenyReason
Source§impl Hash for DenyReason
impl Hash for DenyReason
Source§impl PartialEq for DenyReason
impl PartialEq for DenyReason
Source§impl Serialize for DenyReason
impl Serialize for DenyReason
impl StructuralPartialEq for DenyReason
Auto Trait Implementations§
impl Forget for DenyReason
impl Freeze for DenyReason
impl RefUnwindSafe for DenyReason
impl Send for DenyReason
impl Sync for DenyReason
impl Unpin for DenyReason
impl UnsafeUnpin for DenyReason
impl UnwindSafe for DenyReason
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