pub struct Enable {
pub restrictions: Vec<Restriction>,
pub expires_in_s: u64,
pub forced_slowmode_s: Option<u32>,
pub newcomer_window_s: Option<u64>,
pub reason: Option<String>,
}Expand description
moderation.lockdown.enable (§8.10); responds with the full
Lockdown.
Fields§
§restrictions: Vec<Restriction>≥ 1, each once.
expires_in_s: u6460 – 604 800 s. Required.
forced_slowmode_s: Option<u32>≤ 21 600 s.
newcomer_window_s: Option<u64>1 s – 30 days; only with restrict_newcomers.
reason: Option<String>≤ 512 scalars.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Enable
impl<'de> Deserialize<'de> for Enable
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 Enable
impl StructuralPartialEq for Enable
Auto Trait Implementations§
impl Freeze for Enable
impl RefUnwindSafe for Enable
impl Send for Enable
impl Sync for Enable
impl Unpin for Enable
impl UnsafeUnpin for Enable
impl UnwindSafe for Enable
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