pub struct LockdownPublic {
pub active: bool,
pub restrictions_affecting_you: Vec<Restriction>,
pub expires_at: Option<u64>,
}Expand description
The public form (§8.10), 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.
Fields§
§active: boolWhether a lockdown is active.
restrictions_affecting_you: Vec<Restriction>The restrictions that apply to the viewer.
expires_at: Option<u64>Expiry, ms; null when inactive.
Trait Implementations§
Source§impl Clone for LockdownPublic
impl Clone for LockdownPublic
Source§fn clone(&self) -> LockdownPublic
fn clone(&self) -> LockdownPublic
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 LockdownPublic
impl Debug for LockdownPublic
Source§impl<'de> Deserialize<'de> for LockdownPublic
impl<'de> Deserialize<'de> for LockdownPublic
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 LockdownPublic
Source§impl PartialEq for LockdownPublic
impl PartialEq for LockdownPublic
Source§impl Serialize for LockdownPublic
impl Serialize for LockdownPublic
impl StructuralPartialEq for LockdownPublic
Auto Trait Implementations§
impl Freeze for LockdownPublic
impl RefUnwindSafe for LockdownPublic
impl Send for LockdownPublic
impl Sync for LockdownPublic
impl Unpin for LockdownPublic
impl UnsafeUnpin for LockdownPublic
impl UnwindSafe for LockdownPublic
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