Skip to content

Struct command::object::LockdownPublic

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

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.

Whether a lockdown is active.

restrictions_affecting_you: Vec<Restriction>

Section titled “restrictions_affecting_you: Vec<Restriction>”

The restrictions that apply to the viewer.

Expiry, ms; null when inactive.

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

Full rustdoc page