pub struct ContentReportInput {
pub target_type: ContentReportInputTargetType,
pub target_id: String,
pub reason: ContentReportInputReason,
pub details: Option<String>,
}Expand description
An abuse/moderation report. Same body shape for the authenticated and anonymous endpoints.
Fields§
§target_type: ContentReportInputTargetType§target_id: String§reason: ContentReportInputReasonClosed vocabulary — unknown values are rejected with 422. self_harm raises the resulting
operator notification to critical priority.
details: Option<String>Optional free-text note from the reporter.
Trait Implementations§
Source§impl Clone for ContentReportInput
impl Clone for ContentReportInput
Source§fn clone(&self) -> ContentReportInput
fn clone(&self) -> ContentReportInput
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 ContentReportInput
impl Debug for ContentReportInput
Source§impl Default for ContentReportInput
impl Default for ContentReportInput
Source§fn default() -> ContentReportInput
fn default() -> ContentReportInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentReportInput
impl<'de> Deserialize<'de> for ContentReportInput
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 PartialEq for ContentReportInput
impl PartialEq for ContentReportInput
Source§impl Serialize for ContentReportInput
impl Serialize for ContentReportInput
impl StructuralPartialEq for ContentReportInput
Auto Trait Implementations§
impl Freeze for ContentReportInput
impl RefUnwindSafe for ContentReportInput
impl Send for ContentReportInput
impl Sync for ContentReportInput
impl Unpin for ContentReportInput
impl UnsafeUnpin for ContentReportInput
impl UnwindSafe for ContentReportInput
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