pub struct BanPerson {
pub person_id: PersonId,
pub ban: bool,
pub remove_data: Option<bool>,
pub reason: Option<String>,
pub expires: Option<i64>,
}Expand description
Ban a person from the site.
Fields§
§person_id: PersonId§ban: bool§remove_data: Option<bool>Optionally remove all their data. Useful for new troll accounts.
reason: Option<String>§expires: Option<i64>A time that the ban will expire, in unix epoch seconds.
An i64 unix timestamp is used for a simpler API client implementation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BanPerson
impl<'de> Deserialize<'de> for BanPerson
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 BanPerson
impl StructuralPartialEq for BanPerson
Auto Trait Implementations§
impl Freeze for BanPerson
impl RefUnwindSafe for BanPerson
impl Send for BanPerson
impl Sync for BanPerson
impl Unpin for BanPerson
impl UnwindSafe for BanPerson
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