pub enum ReportType {
Spam,
Harassment,
Inappropriate,
Norms,
Other,
}Expand description
Represents the reason that best describes why the current user is reporting the target message for moderation.
Variants§
Implementations§
Source§impl ReportType
impl ReportType
Sourcepub const HARASSMENT: &str = "harassment"
pub const HARASSMENT: &str = "harassment"
Represents the string value of a harassment report type.
Sourcepub const INAPPROPRIATE: &str = "inappropriate"
pub const INAPPROPRIATE: &str = "inappropriate"
Represents the string value of a inappropriate report type.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ReportType.
Sourcepub const fn as_str(&self) -> &'static str
pub const fn as_str(&self) -> &'static str
Gets the string representation of the ReportType.
Trait Implementations§
Source§impl Clone for ReportType
impl Clone for ReportType
impl Copy for ReportType
Source§impl Debug for ReportType
impl Debug for ReportType
Source§impl Default for ReportType
impl Default for ReportType
Source§impl<'de> Deserialize<'de> for ReportType
impl<'de> Deserialize<'de> for ReportType
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 Display for ReportType
impl Display for ReportType
impl Eq for ReportType
Source§impl From<ReportType> for &'static str
impl From<ReportType> for &'static str
Source§fn from(val: ReportType) -> Self
fn from(val: ReportType) -> Self
Converts to this type from the input type.
Source§impl From<ReportType> for Cow<'static, str>
impl From<ReportType> for Cow<'static, str>
Source§fn from(val: ReportType) -> Self
fn from(val: ReportType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReportType
impl PartialEq for ReportType
Source§impl Serialize for ReportType
impl Serialize for ReportType
impl StructuralPartialEq for ReportType
Auto Trait Implementations§
impl Freeze for ReportType
impl RefUnwindSafe for ReportType
impl Send for ReportType
impl Sync for ReportType
impl Unpin for ReportType
impl UnsafeUnpin for ReportType
impl UnwindSafe for ReportType
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.