pub enum LockdownView {
Full(Lockdown),
Public(LockdownPublic),
}Expand description
A lockdown as the viewer may see it. The full form is tried first. On disable or expiry,
moderation.lockdown.updated carries the inactive public form to every member,
MANAGE_SAFETY holders included (§8.10).
Variants§
Trait Implementations§
Source§impl Clone for LockdownView
impl Clone for LockdownView
Source§fn clone(&self) -> LockdownView
fn clone(&self) -> LockdownView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockdownView
impl Debug for LockdownView
Source§impl<'de> Deserialize<'de> for LockdownView
impl<'de> Deserialize<'de> for LockdownView
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 LockdownView
Source§impl PartialEq for LockdownView
impl PartialEq for LockdownView
Source§impl Serialize for LockdownView
impl Serialize for LockdownView
impl StructuralPartialEq for LockdownView
Auto Trait Implementations§
impl Freeze for LockdownView
impl RefUnwindSafe for LockdownView
impl Send for LockdownView
impl Sync for LockdownView
impl Unpin for LockdownView
impl UnsafeUnpin for LockdownView
impl UnwindSafe for LockdownView
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