# Enum `kurogane::capability::Denial`

```rust
#[non_exhaustive]
pub enum Denial {
    OutsideRoots,
    DenyRule,
    ObjectLocation,
}
```

Why an in-grant request was refused. Each variant renders one fixed,
class-level message.

## Variants

### `OutsideRoots`

```rust
OutsideRoots
```

The request lies outside every allow root that carries the capability,
or `..` pops above its anchor.

### `DenyRule`

```rust
DenyRule
```

The request matches a deny rule of one of the origin's scopes.

### `ObjectLocation`

```rust
ObjectLocation
```

The opened object (or a mutation's target) is located in a denied
subtree, or is a link / reparse point.

## Methods

### `message`

```rust
pub const fn message(self) -> &'static str
```

The class-level message surfaced to the renderer.

## Trait implementations

- `impl Clone for Denial`
- `impl Copy for Denial`
- `impl Debug for Denial`
- `impl Eq for Denial`
- `impl PartialEq for Denial`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/capability/error.rs#L18
