# Struct command::object::LockdownPublic

> The public form, for members without `MANAGE_SAFETY`: `{active, restrictions_affecting_you, expires_at}`. With no active lockdown (disabled or expired) it is `{active: false, restr

`zaun_community_protocol::command::object::LockdownPublic` · Struct

```rust
pub struct LockdownPublic { … }
```

The public form, for members without `MANAGE_SAFETY`: `{active,
restrictions_affecting_you, expires_at}`. With no active lockdown (disabled or expired) it
is `{active: false, restrictions_affecting_you: [], expires_at: null}`, sent to every
member by `moderation.lockdown.updated`.

## Fields

### `active: bool`

Whether a lockdown is active.

### `restrictions_affecting_you: Vec<Restriction>`

The restrictions that apply to the viewer.

### `expires_at: Option<u64>`

Expiry, ms; `null` when inactive.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/lockdown/struct.LockdownPublic.html)
