pub struct FlagContentPayload {
pub target: ContentId,
pub complaint: String,
pub constitutional_ref: Option<String>,
}Expand description
Flag content for moderation.
Note that abuse of this tool may result in your reports being ignored. Also note that a one-off insult is not an offense but sustained harassment is.
Fields§
§target: ContentIdOffending post or comment ID
complaint: StringWhat it does that breaks the Constitution. The signed bytes name
this field by its name before 0.116, reason; see
SignedAction::Flag
constitutional_ref: Option<String>The provision it violates, e.g. “Article V.2”
Trait Implementations§
Source§impl Clone for FlagContentPayload
impl Clone for FlagContentPayload
Source§impl Debug for FlagContentPayload
impl Debug for FlagContentPayload
Source§impl<'de> Deserialize<'de> for FlagContentPayload
impl<'de> Deserialize<'de> for FlagContentPayload
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<'a> From<&'a FlagContentPayload> for SignedAction<'a>
impl<'a> From<&'a FlagContentPayload> for SignedAction<'a>
Source§fn from(p: &'a FlagContentPayload) -> Self
fn from(p: &'a FlagContentPayload) -> Self
Converts to this type from the input type.
Source§impl Serialize for FlagContentPayload
impl Serialize for FlagContentPayload
Source§impl Validate for FlagContentPayload
impl Validate for FlagContentPayload
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Freeze for FlagContentPayload
impl RefUnwindSafe for FlagContentPayload
impl Send for FlagContentPayload
impl Sync for FlagContentPayload
impl Unpin for FlagContentPayload
impl UnsafeUnpin for FlagContentPayload
impl UnwindSafe for FlagContentPayload
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