# Struct permissions::Resolved

> One resolved permission set (`cp` or `chp`).

`zaun_community_protocol::permissions::Resolved` · Struct

```rust
pub struct Resolved { … }
```

One resolved permission set (`cp` or `chp`).

## Fields

### `effective: Permissions`

The effective permissions after step 7. Always a subset of `KNOWN`.

### `grants: Permissions`

The grants of steps 1–6 (after dependencies), before any restriction.

### `before_lockdown: Permissions`

The permissions after steps 7a–7b but before the lockdown (7c) and the `locked` flag
(7d). H3 for lockdown management compares against this, so a lockdown never prevents
its own management.

### `steps: Steps`

What each restriction removed.

### `timed_out: bool`

Whether step 7a applied.

### `waiting: bool`

Whether the waiting period applied.

## Methods

### `unrestricted`

```rust
pub fn unrestricted(p: Permissions) -> Self
```

A result with no restriction (owner, or a member the state gate zeroes).

### `has`

```rust
pub const fn has(&self, bits: Permissions) -> bool
```

Whether every bit of `bits` is effective.

### `require`

```rust
pub fn require(&self, bits: Permissions) -> Result<(), Denial>
```

`Ok` when every bit of `bits` is effective, else a denial naming the missing bits.

### `require_any`

```rust
pub fn require_any(&self, bits: Permissions) -> Result<(), Denial>
```

`Ok` when at least one bit of `bits` is effective (or `bits` is empty).

### `explain`

```rust
pub fn explain(&self, missing: Permissions) -> Denial
```

Attributes missing bits to a restriction. A reason is given only when the
restrictions are the whole cause (every missing bit was granted); then it names the
first step, in order 7a–7d, that removed one of them or its prerequisite.

## Trait implementations

`Clone`, `Copy`, `Debug`, `Eq`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/resolved/struct.Resolved.html)
