pub enum DenyReason {
MissingScope {
scope: String,
},
TenantBoundary,
NotAccepted,
MissingGrant {
grant: String,
scope: String,
roles: Vec<String>,
held_on: Vec<String>,
},
NotNeeded {
method: 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”).
Fields
NotNeeded
NEST-16: a child called its service for method, which is neither
the standard upward interface (host.schema, host.whoami,
host.log, host.notify) nor one of the methods its schema says it
needs. Not in the JSON Schema (schemars(skip)): it would move
the hash of every service’s call, whose items carry this type.
Trait Implementations§
Source§impl Clone for DenyReason
impl Clone for DenyReason
Source§fn clone(&self) -> DenyReason
fn clone(&self) -> DenyReason
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 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<DenyReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DenyReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DenyReason
Source§impl Hash for DenyReason
impl Hash for DenyReason
Source§impl JsonSchema for DenyReason
impl JsonSchema for DenyReason
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DenyReason
impl PartialEq for DenyReason
Source§impl Serialize for DenyReason
impl Serialize for DenyReason
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.