Struct command::object::Lockdown
zaun_community_protocol::command::object::Lockdown · Struct
pub struct Lockdown { … }The full lockdown record, for MANAGE_SAFETY holders: { lockdown_id, restrictions, forced_slowmode_s?, newcomer_window_s?, expires_at, reason?, actor_id }.
Fields
Section titled “Fields”lockdown_id: LockdownId
Section titled “lockdown_id: LockdownId”Host-assigned id.
restrictions: Vec<Restriction>
Section titled “restrictions: Vec<Restriction>”Active restrictions (≥ 1).
forced_slowmode_s: Option<u32>
Section titled “forced_slowmode_s: Option<u32>”Forced minimum slowmode on every channel, s.
newcomer_window_s: Option<u64>
Section titled “newcomer_window_s: Option<u64>”Window for restrict_newcomers, s; present only with that restriction.
expires_at: u64
Section titled “expires_at: u64”Expiry, ms.
reason: Option<String>
Section titled “reason: Option<String>”The moderator’s reason.
actor_id: MemberId
Section titled “actor_id: MemberId”The enabling moderator.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq