# Struct permissions::Resolver

> Per-member state computed once; then `Resolver::community` and `Resolver::channel` are cheap enough to call for every channel of a snapshot.

`zaun_community_protocol::permissions::Resolver` · Struct

```rust
pub struct Resolver<'a> { … }
```

Per-member state computed once; then `Resolver::community` and `Resolver::channel`
are cheap enough to call for every channel of a snapshot.

## Methods

### `base`

```rust
pub const fn base(&self) -> Permissions
```

`base(m)` (steps 1–2), before any restriction; empty for a non-admitted member.

### `is_owner`

```rust
pub const fn is_owner(&self) -> bool
```

Whether the member is the owner.

### `is_admin`

```rust
pub const fn is_admin(&self) -> bool
```

Whether the member holds `ADMINISTRATOR` (and is admitted); false for the owner.

### `is_timed_out`

```rust
pub const fn is_timed_out(&self) -> bool
```

Whether step 7a applies (never to the owner or an administrator).

### `in_waiting_period`

```rust
pub const fn in_waiting_period(&self) -> bool
```

Whether the admission policy's waiting period still applies.

### `party`

```rust
pub fn party(&self) -> Party
```

The member as the management hierarchy sees it.

### `new`

```rust
pub fn new(subject: Subject<'a>, ctx: &Context<'_>) -> Self
```

Phase one: the membership gate, `base(m)` and the member's restriction masks.

### `community`

```rust
pub fn community(&self) -> Resolved
```

`community_permissions(m, ctx)`: `cp(A)` of the protocol

### `channel`

```rust
pub fn channel(&self, ch: &Channel<'_>) -> Resolved
```

`channel_permissions(m, ch, ctx)`: `chp(A, ch)` of the protocol

## Trait implementations

`Clone`, `Copy`, `Debug`

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