revolt_api 0.6.5

Open source user-first chat platform.
Documentation
/*
 * Revolt API
 *
 * Open source user-first chat platform.
 *
 * The version of the OpenAPI document: 0.6.5
 * Contact: contact@revolt.chat
 * Generated by: https://openapi-generator.tech
 */

/// ContentReportReason : Reason for reporting content (message or server)

/// Reason for reporting content (message or server)
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ContentReportReason {
    #[serde(rename = "NoneSpecified")]
    NoneSpecified,
    #[serde(rename = "Illegal")]
    Illegal,
    #[serde(rename = "IllegalGoods")]
    IllegalGoods,
    #[serde(rename = "IllegalExtortion")]
    IllegalExtortion,
    #[serde(rename = "IllegalPornography")]
    IllegalPornography,
    #[serde(rename = "IllegalHacking")]
    IllegalHacking,
    #[serde(rename = "ExtremeViolence")]
    ExtremeViolence,
    #[serde(rename = "PromotesHarm")]
    PromotesHarm,
    #[serde(rename = "UnsolicitedSpam")]
    UnsolicitedSpam,
    #[serde(rename = "Raid")]
    Raid,
    #[serde(rename = "SpamAbuse")]
    SpamAbuse,
    #[serde(rename = "ScamsFraud")]
    ScamsFraud,
    #[serde(rename = "Malware")]
    Malware,
    #[serde(rename = "Harassment")]
    Harassment,

}

impl ToString for ContentReportReason {
    fn to_string(&self) -> String {
        match self {
            Self::NoneSpecified => String::from("NoneSpecified"),
            Self::Illegal => String::from("Illegal"),
            Self::IllegalGoods => String::from("IllegalGoods"),
            Self::IllegalExtortion => String::from("IllegalExtortion"),
            Self::IllegalPornography => String::from("IllegalPornography"),
            Self::IllegalHacking => String::from("IllegalHacking"),
            Self::ExtremeViolence => String::from("ExtremeViolence"),
            Self::PromotesHarm => String::from("PromotesHarm"),
            Self::UnsolicitedSpam => String::from("UnsolicitedSpam"),
            Self::Raid => String::from("Raid"),
            Self::SpamAbuse => String::from("SpamAbuse"),
            Self::ScamsFraud => String::from("ScamsFraud"),
            Self::Malware => String::from("Malware"),
            Self::Harassment => String::from("Harassment"),
        }
    }
}

impl Default for ContentReportReason {
    fn default() -> ContentReportReason {
        Self::NoneSpecified
    }
}