pub struct RemovePost {
pub post_id: PostId,
pub removed: bool,
pub reason: Option<String>,
}Expand description
Remove a post (only doable by mods).
Fields§
§post_id: PostId§removed: bool§reason: Option<String>Trait Implementations§
Source§impl Clone for RemovePost
impl Clone for RemovePost
Source§fn clone(&self) -> RemovePost
fn clone(&self) -> RemovePost
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 RemovePost
impl Debug for RemovePost
Source§impl Default for RemovePost
impl Default for RemovePost
Source§fn default() -> RemovePost
fn default() -> RemovePost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemovePost
impl<'de> Deserialize<'de> for RemovePost
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 RemovePost
impl Hash for RemovePost
Source§impl PartialEq for RemovePost
impl PartialEq for RemovePost
Source§impl Serialize for RemovePost
impl Serialize for RemovePost
impl Eq for RemovePost
impl StructuralPartialEq for RemovePost
Auto Trait Implementations§
impl Freeze for RemovePost
impl RefUnwindSafe for RemovePost
impl Send for RemovePost
impl Sync for RemovePost
impl Unpin for RemovePost
impl UnwindSafe for RemovePost
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