Struct permissions::Denial
zaun_community_protocol::permissions::Denial · Struct
pub struct Denial { … }A failed permission or hierarchy check.
Fields
Section titled “Fields”missing: Permissions
Section titled “missing: Permissions”Required bits the actor lacks; empty when a non-bit rule failed.
reason: Option<DenialReason>
Section titled “reason: Option<DenialReason>”The rule that caused it, when the bits were granted but then restricted, or when a hierarchy rule failed.
Methods
Section titled “Methods”hierarchy
Section titled “hierarchy”pub const fn hierarchy() -> SelfA hierarchy denial (H1, H2, H4).
missing
Section titled “missing”pub const fn missing(bits: Permissions) -> SelfA denial for missing bits with no specific cause.
error_code
Section titled “error_code”pub const fn error_code(&self) -> ErrorCodeThe response code: TIMED_OUT when the timeout caused it, otherwise FORBIDDEN.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Eq, From<Denial>, Hash, PartialEq, StructuralPartialEq