pub struct BanFromCommunity {
pub community_id: CommunityId,
pub person_id: PersonId,
pub ban: bool,
pub remove_data: Option<bool>,
pub reason: Option<String>,
pub expires: Option<i64>,
}Expand description
Ban a user from a community.
Fields§
§community_id: CommunityId§person_id: PersonId§ban: bool§remove_data: Option<bool>§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 Clone for BanFromCommunity
impl Clone for BanFromCommunity
Source§fn clone(&self) -> BanFromCommunity
fn clone(&self) -> BanFromCommunity
Returns a duplicate of the value. Read more
1.0.0 · 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 BanFromCommunity
impl Debug for BanFromCommunity
Source§impl Default for BanFromCommunity
impl Default for BanFromCommunity
Source§fn default() -> BanFromCommunity
fn default() -> BanFromCommunity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BanFromCommunity
impl<'de> Deserialize<'de> for BanFromCommunity
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
Source§impl Hash for BanFromCommunity
impl Hash for BanFromCommunity
Source§impl PartialEq for BanFromCommunity
impl PartialEq for BanFromCommunity
Source§impl Serialize for BanFromCommunity
impl Serialize for BanFromCommunity
impl Eq for BanFromCommunity
impl StructuralPartialEq for BanFromCommunity
Auto Trait Implementations§
impl Freeze for BanFromCommunity
impl RefUnwindSafe for BanFromCommunity
impl Send for BanFromCommunity
impl Sync for BanFromCommunity
impl Unpin for BanFromCommunity
impl UnwindSafe for BanFromCommunity
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