pub struct BanUserInput {
pub user_id: Id,
pub ban_reason: Option<String>,
pub ban_expires_in: Option<i64>,
}Expand description
Body of /admin/ban-user.
Fields§
§user_id: Id§ban_reason: Option<String>Defaults to the configured reason, or "No reason".
ban_expires_in: Option<i64>Seconds until the ban lifts. Defaults to the configured expiry, or never.
Implementations§
Trait Implementations§
Source§impl Clone for BanUserInput
impl Clone for BanUserInput
Source§impl Debug for BanUserInput
impl Debug for BanUserInput
Source§impl<'de> Deserialize<'de> for BanUserInput
impl<'de> Deserialize<'de> for BanUserInput
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
Auto Trait Implementations§
impl Forget for BanUserInput
impl Freeze for BanUserInput
impl Move for BanUserInput
impl RefUnwindSafe for BanUserInput
impl Send for BanUserInput
impl Sync for BanUserInput
impl Unpin for BanUserInput
impl UnsafeUnpin for BanUserInput
impl UnwindSafe for BanUserInput
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