# Struct permissions::Subject

> The member whose permissions are resolved.

`zaun_community_protocol::permissions::Subject` · Struct

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

The member whose permissions are resolved.

## Fields

### `id: MemberId`

The member id (matches member overrides).

### `is_owner: bool`

Whether this member is the owner bound in the current descriptor.

### `state: MembershipState`

The lifecycle state.

### `roles: &'a [Role]`

The roles the member holds, joined from the role table. `@everyone` need not be
listed (its permissions come from `Context::everyone`); listing it is harmless.

### `timeout_until_ms: Option<u64>`

`members.timeout_until` in ms since the epoch.

### `admitted_at_ms: u64`

When the member was admitted (left `Pending`), in ms since the epoch. Drives the
waiting period and a lockdown's `restrict_newcomers` window.

## Trait implementations

`Clone`, `Copy`, `Debug`

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