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: ContentTargetPost or comment id
reason: StringWhy it breaks the Constitution
constitutional_ref: Option<String>The provision, e.g. “Article V.2”
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
Source§impl Validate for FlagContentInput
impl Validate for FlagContentInput
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 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.