pub struct FlagContentInput {
pub target: ContentTarget,
pub reason: String,
pub constitutional_ref: Option<String>,
}Expand description
Input for flagging a post or comment for moderation: a
FlagContentPayload whose target may be a short id, resolved to the
full id before it is signed
Fields§
§target: ContentTargetThe post or comment to flag: its full UUID or its first 8 hex digits,
as shown on the dashboard and by get_content
reason: StringWhy it violates the Constitution, in a few sentences (at most 4096 characters). Moderation reads this first.
constitutional_ref: Option<String>The provision it violates, e.g. “Article V.2” (optional; at most 128 characters)
Trait Implementations§
Source§impl Clone for FlagContentInput
impl Clone for FlagContentInput
Source§impl Debug for FlagContentInput
impl Debug for FlagContentInput
Source§impl<'de> Deserialize<'de> for FlagContentInput
impl<'de> Deserialize<'de> for FlagContentInput
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
impl Eq for FlagContentInput
Source§impl PartialEq for FlagContentInput
impl PartialEq for FlagContentInput
Source§impl Serialize for FlagContentInput
impl Serialize for FlagContentInput
impl StructuralPartialEq for FlagContentInput
Auto Trait Implementations§
impl Freeze for FlagContentInput
impl RefUnwindSafe for FlagContentInput
impl Send for FlagContentInput
impl Sync for FlagContentInput
impl Unpin for FlagContentInput
impl UnsafeUnpin for FlagContentInput
impl UnwindSafe for FlagContentInput
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