pub struct Lockdown {
pub lockdown_id: LockdownId,
pub restrictions: Vec<Restriction>,
pub forced_slowmode_s: Option<u32>,
pub newcomer_window_s: Option<u64>,
pub expires_at: u64,
pub reason: Option<String>,
pub actor_id: MemberId,
}Expand description
The full lockdown record (§8.10), for MANAGE_SAFETY holders: { lockdown_id, restrictions, forced_slowmode_s?, newcomer_window_s?, expires_at, reason?, actor_id }.
Fields§
§lockdown_id: LockdownIdHost-assigned id.
restrictions: Vec<Restriction>Active restrictions (≥ 1).
forced_slowmode_s: Option<u32>Forced minimum slowmode on every channel, s.
newcomer_window_s: Option<u64>Window for restrict_newcomers, s; present only with that restriction.
expires_at: u64Expiry, ms.
reason: Option<String>The moderator’s reason.
actor_id: MemberIdThe enabling moderator.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lockdown
impl<'de> Deserialize<'de> for Lockdown
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Lockdown
impl StructuralPartialEq for Lockdown
Auto Trait Implementations§
impl Freeze for Lockdown
impl RefUnwindSafe for Lockdown
impl Send for Lockdown
impl Sync for Lockdown
impl Unpin for Lockdown
impl UnsafeUnpin for Lockdown
impl UnwindSafe for Lockdown
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more