// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: tools.ozone.report.defs // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. /// Appeal a previously taken moderation action #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonAppeal; impl std::fmt::Display for ReasonAppeal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonAppeal") } } /// Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonChildSafetyCsam; impl std::fmt::Display for ReasonChildSafetyCsam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonChildSafetyCSAM") } } /// Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonChildSafetyGroom; impl std::fmt::Display for ReasonChildSafetyGroom { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonChildSafetyGroom") } } /// Harassment or bullying of minors #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonChildSafetyHarassment; impl std::fmt::Display for ReasonChildSafetyHarassment { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonChildSafetyHarassment") } } /// Other child safety. These reports will be sent only be sent to the application's Moderation Authority. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonChildSafetyOther; impl std::fmt::Display for ReasonChildSafetyOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonChildSafetyOther") } } /// Privacy violation involving a minor #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonChildSafetyPrivacy; impl std::fmt::Display for ReasonChildSafetyPrivacy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonChildSafetyPrivacy") } } /// Doxxing #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonHarassmentDoxxing; impl std::fmt::Display for ReasonHarassmentDoxxing { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonHarassmentDoxxing") } } /// Hate speech #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonHarassmentHateSpeech; impl std::fmt::Display for ReasonHarassmentHateSpeech { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonHarassmentHateSpeech") } } /// Other harassing or hateful content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonHarassmentOther; impl std::fmt::Display for ReasonHarassmentOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonHarassmentOther") } } /// Targeted harassment #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonHarassmentTargeted; impl std::fmt::Display for ReasonHarassmentTargeted { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonHarassmentTargeted") } } /// Trolling #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonHarassmentTroll; impl std::fmt::Display for ReasonHarassmentTroll { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonHarassmentTroll") } } /// Fake account or bot #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonMisleadingBot; impl std::fmt::Display for ReasonMisleadingBot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonMisleadingBot") } } /// False information about elections #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonMisleadingElections; impl std::fmt::Display for ReasonMisleadingElections { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonMisleadingElections") } } /// Impersonation #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonMisleadingImpersonation; impl std::fmt::Display for ReasonMisleadingImpersonation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonMisleadingImpersonation") } } /// Other misleading content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonMisleadingOther; impl std::fmt::Display for ReasonMisleadingOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonMisleadingOther") } } /// Scam #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonMisleadingScam; impl std::fmt::Display for ReasonMisleadingScam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonMisleadingScam") } } /// Spam #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonMisleadingSpam; impl std::fmt::Display for ReasonMisleadingSpam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonMisleadingSpam") } } /// An issue not included in these options #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonOther; impl std::fmt::Display for ReasonOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonOther") } } /// Banned user returning #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonRuleBanEvasion; impl std::fmt::Display for ReasonRuleBanEvasion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonRuleBanEvasion") } } /// Other #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonRuleOther; impl std::fmt::Display for ReasonRuleOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonRuleOther") } } /// Promoting or selling prohibited items or services #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonRuleProhibitedSales; impl std::fmt::Display for ReasonRuleProhibitedSales { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonRuleProhibitedSales") } } /// Hacking or system attacks #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonRuleSiteSecurity; impl std::fmt::Display for ReasonRuleSiteSecurity { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonRuleSiteSecurity") } } /// Content promoting or depicting self-harm #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSelfHarmContent; impl std::fmt::Display for ReasonSelfHarmContent { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSelfHarmContent") } } /// Eating disorders #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSelfHarmEd; impl std::fmt::Display for ReasonSelfHarmEd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSelfHarmED") } } /// Other dangerous content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSelfHarmOther; impl std::fmt::Display for ReasonSelfHarmOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSelfHarmOther") } } /// Dangerous challenges or activities #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSelfHarmStunts; impl std::fmt::Display for ReasonSelfHarmStunts { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSelfHarmStunts") } } /// Dangerous substances or drug abuse #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSelfHarmSubstances; impl std::fmt::Display for ReasonSelfHarmSubstances { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSelfHarmSubstances") } } /// Adult sexual abuse content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSexualAbuseContent; impl std::fmt::Display for ReasonSexualAbuseContent { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSexualAbuseContent") } } /// Animal sexual abuse #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSexualAnimal; impl std::fmt::Display for ReasonSexualAnimal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSexualAnimal") } } /// Deepfake adult content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSexualDeepfake; impl std::fmt::Display for ReasonSexualDeepfake { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSexualDeepfake") } } /// Non-consensual intimate imagery #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSexualNcii; impl std::fmt::Display for ReasonSexualNcii { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSexualNCII") } } /// Other sexual violence content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSexualOther; impl std::fmt::Display for ReasonSexualOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSexualOther") } } /// Unlabelled adult content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonSexualUnlabeled; impl std::fmt::Display for ReasonSexualUnlabeled { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonSexualUnlabeled") } } #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum ReasonType<'a> { ToolsOzoneReportDefsReasonAppeal, ToolsOzoneReportDefsReasonOther, ToolsOzoneReportDefsReasonViolenceAnimal, ToolsOzoneReportDefsReasonViolenceThreats, ToolsOzoneReportDefsReasonViolenceGraphicContent, ToolsOzoneReportDefsReasonViolenceGlorification, ToolsOzoneReportDefsReasonViolenceExtremistContent, ToolsOzoneReportDefsReasonViolenceTrafficking, ToolsOzoneReportDefsReasonViolenceOther, ToolsOzoneReportDefsReasonSexualAbuseContent, ToolsOzoneReportDefsReasonSexualNcii, ToolsOzoneReportDefsReasonSexualDeepfake, ToolsOzoneReportDefsReasonSexualAnimal, ToolsOzoneReportDefsReasonSexualUnlabeled, ToolsOzoneReportDefsReasonSexualOther, ToolsOzoneReportDefsReasonChildSafetyCsam, ToolsOzoneReportDefsReasonChildSafetyGroom, ToolsOzoneReportDefsReasonChildSafetyPrivacy, ToolsOzoneReportDefsReasonChildSafetyHarassment, ToolsOzoneReportDefsReasonChildSafetyOther, ToolsOzoneReportDefsReasonHarassmentTroll, ToolsOzoneReportDefsReasonHarassmentTargeted, ToolsOzoneReportDefsReasonHarassmentHateSpeech, ToolsOzoneReportDefsReasonHarassmentDoxxing, ToolsOzoneReportDefsReasonHarassmentOther, ToolsOzoneReportDefsReasonMisleadingBot, ToolsOzoneReportDefsReasonMisleadingImpersonation, ToolsOzoneReportDefsReasonMisleadingSpam, ToolsOzoneReportDefsReasonMisleadingScam, ToolsOzoneReportDefsReasonMisleadingElections, ToolsOzoneReportDefsReasonMisleadingOther, ToolsOzoneReportDefsReasonRuleSiteSecurity, ToolsOzoneReportDefsReasonRuleProhibitedSales, ToolsOzoneReportDefsReasonRuleBanEvasion, ToolsOzoneReportDefsReasonRuleOther, ToolsOzoneReportDefsReasonSelfHarmContent, ToolsOzoneReportDefsReasonSelfHarmEd, ToolsOzoneReportDefsReasonSelfHarmStunts, ToolsOzoneReportDefsReasonSelfHarmSubstances, ToolsOzoneReportDefsReasonSelfHarmOther, Other(jacquard_common::CowStr<'a>), } impl<'a> ReasonType<'a> { pub fn as_str(&self) -> &str { match self { Self::ToolsOzoneReportDefsReasonAppeal => { "tools.ozone.report.defs#reasonAppeal" } Self::ToolsOzoneReportDefsReasonOther => { "tools.ozone.report.defs#reasonOther" } Self::ToolsOzoneReportDefsReasonViolenceAnimal => { "tools.ozone.report.defs#reasonViolenceAnimal" } Self::ToolsOzoneReportDefsReasonViolenceThreats => { "tools.ozone.report.defs#reasonViolenceThreats" } Self::ToolsOzoneReportDefsReasonViolenceGraphicContent => { "tools.ozone.report.defs#reasonViolenceGraphicContent" } Self::ToolsOzoneReportDefsReasonViolenceGlorification => { "tools.ozone.report.defs#reasonViolenceGlorification" } Self::ToolsOzoneReportDefsReasonViolenceExtremistContent => { "tools.ozone.report.defs#reasonViolenceExtremistContent" } Self::ToolsOzoneReportDefsReasonViolenceTrafficking => { "tools.ozone.report.defs#reasonViolenceTrafficking" } Self::ToolsOzoneReportDefsReasonViolenceOther => { "tools.ozone.report.defs#reasonViolenceOther" } Self::ToolsOzoneReportDefsReasonSexualAbuseContent => { "tools.ozone.report.defs#reasonSexualAbuseContent" } Self::ToolsOzoneReportDefsReasonSexualNcii => { "tools.ozone.report.defs#reasonSexualNCII" } Self::ToolsOzoneReportDefsReasonSexualDeepfake => { "tools.ozone.report.defs#reasonSexualDeepfake" } Self::ToolsOzoneReportDefsReasonSexualAnimal => { "tools.ozone.report.defs#reasonSexualAnimal" } Self::ToolsOzoneReportDefsReasonSexualUnlabeled => { "tools.ozone.report.defs#reasonSexualUnlabeled" } Self::ToolsOzoneReportDefsReasonSexualOther => { "tools.ozone.report.defs#reasonSexualOther" } Self::ToolsOzoneReportDefsReasonChildSafetyCsam => { "tools.ozone.report.defs#reasonChildSafetyCSAM" } Self::ToolsOzoneReportDefsReasonChildSafetyGroom => { "tools.ozone.report.defs#reasonChildSafetyGroom" } Self::ToolsOzoneReportDefsReasonChildSafetyPrivacy => { "tools.ozone.report.defs#reasonChildSafetyPrivacy" } Self::ToolsOzoneReportDefsReasonChildSafetyHarassment => { "tools.ozone.report.defs#reasonChildSafetyHarassment" } Self::ToolsOzoneReportDefsReasonChildSafetyOther => { "tools.ozone.report.defs#reasonChildSafetyOther" } Self::ToolsOzoneReportDefsReasonHarassmentTroll => { "tools.ozone.report.defs#reasonHarassmentTroll" } Self::ToolsOzoneReportDefsReasonHarassmentTargeted => { "tools.ozone.report.defs#reasonHarassmentTargeted" } Self::ToolsOzoneReportDefsReasonHarassmentHateSpeech => { "tools.ozone.report.defs#reasonHarassmentHateSpeech" } Self::ToolsOzoneReportDefsReasonHarassmentDoxxing => { "tools.ozone.report.defs#reasonHarassmentDoxxing" } Self::ToolsOzoneReportDefsReasonHarassmentOther => { "tools.ozone.report.defs#reasonHarassmentOther" } Self::ToolsOzoneReportDefsReasonMisleadingBot => { "tools.ozone.report.defs#reasonMisleadingBot" } Self::ToolsOzoneReportDefsReasonMisleadingImpersonation => { "tools.ozone.report.defs#reasonMisleadingImpersonation" } Self::ToolsOzoneReportDefsReasonMisleadingSpam => { "tools.ozone.report.defs#reasonMisleadingSpam" } Self::ToolsOzoneReportDefsReasonMisleadingScam => { "tools.ozone.report.defs#reasonMisleadingScam" } Self::ToolsOzoneReportDefsReasonMisleadingElections => { "tools.ozone.report.defs#reasonMisleadingElections" } Self::ToolsOzoneReportDefsReasonMisleadingOther => { "tools.ozone.report.defs#reasonMisleadingOther" } Self::ToolsOzoneReportDefsReasonRuleSiteSecurity => { "tools.ozone.report.defs#reasonRuleSiteSecurity" } Self::ToolsOzoneReportDefsReasonRuleProhibitedSales => { "tools.ozone.report.defs#reasonRuleProhibitedSales" } Self::ToolsOzoneReportDefsReasonRuleBanEvasion => { "tools.ozone.report.defs#reasonRuleBanEvasion" } Self::ToolsOzoneReportDefsReasonRuleOther => { "tools.ozone.report.defs#reasonRuleOther" } Self::ToolsOzoneReportDefsReasonSelfHarmContent => { "tools.ozone.report.defs#reasonSelfHarmContent" } Self::ToolsOzoneReportDefsReasonSelfHarmEd => { "tools.ozone.report.defs#reasonSelfHarmED" } Self::ToolsOzoneReportDefsReasonSelfHarmStunts => { "tools.ozone.report.defs#reasonSelfHarmStunts" } Self::ToolsOzoneReportDefsReasonSelfHarmSubstances => { "tools.ozone.report.defs#reasonSelfHarmSubstances" } Self::ToolsOzoneReportDefsReasonSelfHarmOther => { "tools.ozone.report.defs#reasonSelfHarmOther" } Self::Other(s) => s.as_ref(), } } } impl<'a> From<&'a str> for ReasonType<'a> { fn from(s: &'a str) -> Self { match s { "tools.ozone.report.defs#reasonAppeal" => { Self::ToolsOzoneReportDefsReasonAppeal } "tools.ozone.report.defs#reasonOther" => { Self::ToolsOzoneReportDefsReasonOther } "tools.ozone.report.defs#reasonViolenceAnimal" => { Self::ToolsOzoneReportDefsReasonViolenceAnimal } "tools.ozone.report.defs#reasonViolenceThreats" => { Self::ToolsOzoneReportDefsReasonViolenceThreats } "tools.ozone.report.defs#reasonViolenceGraphicContent" => { Self::ToolsOzoneReportDefsReasonViolenceGraphicContent } "tools.ozone.report.defs#reasonViolenceGlorification" => { Self::ToolsOzoneReportDefsReasonViolenceGlorification } "tools.ozone.report.defs#reasonViolenceExtremistContent" => { Self::ToolsOzoneReportDefsReasonViolenceExtremistContent } "tools.ozone.report.defs#reasonViolenceTrafficking" => { Self::ToolsOzoneReportDefsReasonViolenceTrafficking } "tools.ozone.report.defs#reasonViolenceOther" => { Self::ToolsOzoneReportDefsReasonViolenceOther } "tools.ozone.report.defs#reasonSexualAbuseContent" => { Self::ToolsOzoneReportDefsReasonSexualAbuseContent } "tools.ozone.report.defs#reasonSexualNCII" => { Self::ToolsOzoneReportDefsReasonSexualNcii } "tools.ozone.report.defs#reasonSexualDeepfake" => { Self::ToolsOzoneReportDefsReasonSexualDeepfake } "tools.ozone.report.defs#reasonSexualAnimal" => { Self::ToolsOzoneReportDefsReasonSexualAnimal } "tools.ozone.report.defs#reasonSexualUnlabeled" => { Self::ToolsOzoneReportDefsReasonSexualUnlabeled } "tools.ozone.report.defs#reasonSexualOther" => { Self::ToolsOzoneReportDefsReasonSexualOther } "tools.ozone.report.defs#reasonChildSafetyCSAM" => { Self::ToolsOzoneReportDefsReasonChildSafetyCsam } "tools.ozone.report.defs#reasonChildSafetyGroom" => { Self::ToolsOzoneReportDefsReasonChildSafetyGroom } "tools.ozone.report.defs#reasonChildSafetyPrivacy" => { Self::ToolsOzoneReportDefsReasonChildSafetyPrivacy } "tools.ozone.report.defs#reasonChildSafetyHarassment" => { Self::ToolsOzoneReportDefsReasonChildSafetyHarassment } "tools.ozone.report.defs#reasonChildSafetyOther" => { Self::ToolsOzoneReportDefsReasonChildSafetyOther } "tools.ozone.report.defs#reasonHarassmentTroll" => { Self::ToolsOzoneReportDefsReasonHarassmentTroll } "tools.ozone.report.defs#reasonHarassmentTargeted" => { Self::ToolsOzoneReportDefsReasonHarassmentTargeted } "tools.ozone.report.defs#reasonHarassmentHateSpeech" => { Self::ToolsOzoneReportDefsReasonHarassmentHateSpeech } "tools.ozone.report.defs#reasonHarassmentDoxxing" => { Self::ToolsOzoneReportDefsReasonHarassmentDoxxing } "tools.ozone.report.defs#reasonHarassmentOther" => { Self::ToolsOzoneReportDefsReasonHarassmentOther } "tools.ozone.report.defs#reasonMisleadingBot" => { Self::ToolsOzoneReportDefsReasonMisleadingBot } "tools.ozone.report.defs#reasonMisleadingImpersonation" => { Self::ToolsOzoneReportDefsReasonMisleadingImpersonation } "tools.ozone.report.defs#reasonMisleadingSpam" => { Self::ToolsOzoneReportDefsReasonMisleadingSpam } "tools.ozone.report.defs#reasonMisleadingScam" => { Self::ToolsOzoneReportDefsReasonMisleadingScam } "tools.ozone.report.defs#reasonMisleadingElections" => { Self::ToolsOzoneReportDefsReasonMisleadingElections } "tools.ozone.report.defs#reasonMisleadingOther" => { Self::ToolsOzoneReportDefsReasonMisleadingOther } "tools.ozone.report.defs#reasonRuleSiteSecurity" => { Self::ToolsOzoneReportDefsReasonRuleSiteSecurity } "tools.ozone.report.defs#reasonRuleProhibitedSales" => { Self::ToolsOzoneReportDefsReasonRuleProhibitedSales } "tools.ozone.report.defs#reasonRuleBanEvasion" => { Self::ToolsOzoneReportDefsReasonRuleBanEvasion } "tools.ozone.report.defs#reasonRuleOther" => { Self::ToolsOzoneReportDefsReasonRuleOther } "tools.ozone.report.defs#reasonSelfHarmContent" => { Self::ToolsOzoneReportDefsReasonSelfHarmContent } "tools.ozone.report.defs#reasonSelfHarmED" => { Self::ToolsOzoneReportDefsReasonSelfHarmEd } "tools.ozone.report.defs#reasonSelfHarmStunts" => { Self::ToolsOzoneReportDefsReasonSelfHarmStunts } "tools.ozone.report.defs#reasonSelfHarmSubstances" => { Self::ToolsOzoneReportDefsReasonSelfHarmSubstances } "tools.ozone.report.defs#reasonSelfHarmOther" => { Self::ToolsOzoneReportDefsReasonSelfHarmOther } _ => Self::Other(jacquard_common::CowStr::from(s)), } } } impl<'a> From for ReasonType<'a> { fn from(s: String) -> Self { match s.as_str() { "tools.ozone.report.defs#reasonAppeal" => { Self::ToolsOzoneReportDefsReasonAppeal } "tools.ozone.report.defs#reasonOther" => { Self::ToolsOzoneReportDefsReasonOther } "tools.ozone.report.defs#reasonViolenceAnimal" => { Self::ToolsOzoneReportDefsReasonViolenceAnimal } "tools.ozone.report.defs#reasonViolenceThreats" => { Self::ToolsOzoneReportDefsReasonViolenceThreats } "tools.ozone.report.defs#reasonViolenceGraphicContent" => { Self::ToolsOzoneReportDefsReasonViolenceGraphicContent } "tools.ozone.report.defs#reasonViolenceGlorification" => { Self::ToolsOzoneReportDefsReasonViolenceGlorification } "tools.ozone.report.defs#reasonViolenceExtremistContent" => { Self::ToolsOzoneReportDefsReasonViolenceExtremistContent } "tools.ozone.report.defs#reasonViolenceTrafficking" => { Self::ToolsOzoneReportDefsReasonViolenceTrafficking } "tools.ozone.report.defs#reasonViolenceOther" => { Self::ToolsOzoneReportDefsReasonViolenceOther } "tools.ozone.report.defs#reasonSexualAbuseContent" => { Self::ToolsOzoneReportDefsReasonSexualAbuseContent } "tools.ozone.report.defs#reasonSexualNCII" => { Self::ToolsOzoneReportDefsReasonSexualNcii } "tools.ozone.report.defs#reasonSexualDeepfake" => { Self::ToolsOzoneReportDefsReasonSexualDeepfake } "tools.ozone.report.defs#reasonSexualAnimal" => { Self::ToolsOzoneReportDefsReasonSexualAnimal } "tools.ozone.report.defs#reasonSexualUnlabeled" => { Self::ToolsOzoneReportDefsReasonSexualUnlabeled } "tools.ozone.report.defs#reasonSexualOther" => { Self::ToolsOzoneReportDefsReasonSexualOther } "tools.ozone.report.defs#reasonChildSafetyCSAM" => { Self::ToolsOzoneReportDefsReasonChildSafetyCsam } "tools.ozone.report.defs#reasonChildSafetyGroom" => { Self::ToolsOzoneReportDefsReasonChildSafetyGroom } "tools.ozone.report.defs#reasonChildSafetyPrivacy" => { Self::ToolsOzoneReportDefsReasonChildSafetyPrivacy } "tools.ozone.report.defs#reasonChildSafetyHarassment" => { Self::ToolsOzoneReportDefsReasonChildSafetyHarassment } "tools.ozone.report.defs#reasonChildSafetyOther" => { Self::ToolsOzoneReportDefsReasonChildSafetyOther } "tools.ozone.report.defs#reasonHarassmentTroll" => { Self::ToolsOzoneReportDefsReasonHarassmentTroll } "tools.ozone.report.defs#reasonHarassmentTargeted" => { Self::ToolsOzoneReportDefsReasonHarassmentTargeted } "tools.ozone.report.defs#reasonHarassmentHateSpeech" => { Self::ToolsOzoneReportDefsReasonHarassmentHateSpeech } "tools.ozone.report.defs#reasonHarassmentDoxxing" => { Self::ToolsOzoneReportDefsReasonHarassmentDoxxing } "tools.ozone.report.defs#reasonHarassmentOther" => { Self::ToolsOzoneReportDefsReasonHarassmentOther } "tools.ozone.report.defs#reasonMisleadingBot" => { Self::ToolsOzoneReportDefsReasonMisleadingBot } "tools.ozone.report.defs#reasonMisleadingImpersonation" => { Self::ToolsOzoneReportDefsReasonMisleadingImpersonation } "tools.ozone.report.defs#reasonMisleadingSpam" => { Self::ToolsOzoneReportDefsReasonMisleadingSpam } "tools.ozone.report.defs#reasonMisleadingScam" => { Self::ToolsOzoneReportDefsReasonMisleadingScam } "tools.ozone.report.defs#reasonMisleadingElections" => { Self::ToolsOzoneReportDefsReasonMisleadingElections } "tools.ozone.report.defs#reasonMisleadingOther" => { Self::ToolsOzoneReportDefsReasonMisleadingOther } "tools.ozone.report.defs#reasonRuleSiteSecurity" => { Self::ToolsOzoneReportDefsReasonRuleSiteSecurity } "tools.ozone.report.defs#reasonRuleProhibitedSales" => { Self::ToolsOzoneReportDefsReasonRuleProhibitedSales } "tools.ozone.report.defs#reasonRuleBanEvasion" => { Self::ToolsOzoneReportDefsReasonRuleBanEvasion } "tools.ozone.report.defs#reasonRuleOther" => { Self::ToolsOzoneReportDefsReasonRuleOther } "tools.ozone.report.defs#reasonSelfHarmContent" => { Self::ToolsOzoneReportDefsReasonSelfHarmContent } "tools.ozone.report.defs#reasonSelfHarmED" => { Self::ToolsOzoneReportDefsReasonSelfHarmEd } "tools.ozone.report.defs#reasonSelfHarmStunts" => { Self::ToolsOzoneReportDefsReasonSelfHarmStunts } "tools.ozone.report.defs#reasonSelfHarmSubstances" => { Self::ToolsOzoneReportDefsReasonSelfHarmSubstances } "tools.ozone.report.defs#reasonSelfHarmOther" => { Self::ToolsOzoneReportDefsReasonSelfHarmOther } _ => Self::Other(jacquard_common::CowStr::from(s)), } } } impl<'a> AsRef for ReasonType<'a> { fn as_ref(&self) -> &str { self.as_str() } } impl<'a> core::fmt::Display for ReasonType<'a> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{}", self.as_str()) } } impl<'a> serde::Serialize for ReasonType<'a> { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer, { serializer.serialize_str(self.as_str()) } } impl<'de, 'a> serde::Deserialize<'de> for ReasonType<'a> where 'de: 'a, { fn deserialize(deserializer: D) -> Result where D: serde::Deserializer<'de>, { let s = <&'de str>::deserialize(deserializer)?; Ok(Self::from(s)) } } impl jacquard_common::IntoStatic for ReasonType<'_> { type Output = ReasonType<'static>; fn into_static(self) -> Self::Output { match self { ReasonType::ToolsOzoneReportDefsReasonAppeal => { ReasonType::ToolsOzoneReportDefsReasonAppeal } ReasonType::ToolsOzoneReportDefsReasonOther => { ReasonType::ToolsOzoneReportDefsReasonOther } ReasonType::ToolsOzoneReportDefsReasonViolenceAnimal => { ReasonType::ToolsOzoneReportDefsReasonViolenceAnimal } ReasonType::ToolsOzoneReportDefsReasonViolenceThreats => { ReasonType::ToolsOzoneReportDefsReasonViolenceThreats } ReasonType::ToolsOzoneReportDefsReasonViolenceGraphicContent => { ReasonType::ToolsOzoneReportDefsReasonViolenceGraphicContent } ReasonType::ToolsOzoneReportDefsReasonViolenceGlorification => { ReasonType::ToolsOzoneReportDefsReasonViolenceGlorification } ReasonType::ToolsOzoneReportDefsReasonViolenceExtremistContent => { ReasonType::ToolsOzoneReportDefsReasonViolenceExtremistContent } ReasonType::ToolsOzoneReportDefsReasonViolenceTrafficking => { ReasonType::ToolsOzoneReportDefsReasonViolenceTrafficking } ReasonType::ToolsOzoneReportDefsReasonViolenceOther => { ReasonType::ToolsOzoneReportDefsReasonViolenceOther } ReasonType::ToolsOzoneReportDefsReasonSexualAbuseContent => { ReasonType::ToolsOzoneReportDefsReasonSexualAbuseContent } ReasonType::ToolsOzoneReportDefsReasonSexualNcii => { ReasonType::ToolsOzoneReportDefsReasonSexualNcii } ReasonType::ToolsOzoneReportDefsReasonSexualDeepfake => { ReasonType::ToolsOzoneReportDefsReasonSexualDeepfake } ReasonType::ToolsOzoneReportDefsReasonSexualAnimal => { ReasonType::ToolsOzoneReportDefsReasonSexualAnimal } ReasonType::ToolsOzoneReportDefsReasonSexualUnlabeled => { ReasonType::ToolsOzoneReportDefsReasonSexualUnlabeled } ReasonType::ToolsOzoneReportDefsReasonSexualOther => { ReasonType::ToolsOzoneReportDefsReasonSexualOther } ReasonType::ToolsOzoneReportDefsReasonChildSafetyCsam => { ReasonType::ToolsOzoneReportDefsReasonChildSafetyCsam } ReasonType::ToolsOzoneReportDefsReasonChildSafetyGroom => { ReasonType::ToolsOzoneReportDefsReasonChildSafetyGroom } ReasonType::ToolsOzoneReportDefsReasonChildSafetyPrivacy => { ReasonType::ToolsOzoneReportDefsReasonChildSafetyPrivacy } ReasonType::ToolsOzoneReportDefsReasonChildSafetyHarassment => { ReasonType::ToolsOzoneReportDefsReasonChildSafetyHarassment } ReasonType::ToolsOzoneReportDefsReasonChildSafetyOther => { ReasonType::ToolsOzoneReportDefsReasonChildSafetyOther } ReasonType::ToolsOzoneReportDefsReasonHarassmentTroll => { ReasonType::ToolsOzoneReportDefsReasonHarassmentTroll } ReasonType::ToolsOzoneReportDefsReasonHarassmentTargeted => { ReasonType::ToolsOzoneReportDefsReasonHarassmentTargeted } ReasonType::ToolsOzoneReportDefsReasonHarassmentHateSpeech => { ReasonType::ToolsOzoneReportDefsReasonHarassmentHateSpeech } ReasonType::ToolsOzoneReportDefsReasonHarassmentDoxxing => { ReasonType::ToolsOzoneReportDefsReasonHarassmentDoxxing } ReasonType::ToolsOzoneReportDefsReasonHarassmentOther => { ReasonType::ToolsOzoneReportDefsReasonHarassmentOther } ReasonType::ToolsOzoneReportDefsReasonMisleadingBot => { ReasonType::ToolsOzoneReportDefsReasonMisleadingBot } ReasonType::ToolsOzoneReportDefsReasonMisleadingImpersonation => { ReasonType::ToolsOzoneReportDefsReasonMisleadingImpersonation } ReasonType::ToolsOzoneReportDefsReasonMisleadingSpam => { ReasonType::ToolsOzoneReportDefsReasonMisleadingSpam } ReasonType::ToolsOzoneReportDefsReasonMisleadingScam => { ReasonType::ToolsOzoneReportDefsReasonMisleadingScam } ReasonType::ToolsOzoneReportDefsReasonMisleadingElections => { ReasonType::ToolsOzoneReportDefsReasonMisleadingElections } ReasonType::ToolsOzoneReportDefsReasonMisleadingOther => { ReasonType::ToolsOzoneReportDefsReasonMisleadingOther } ReasonType::ToolsOzoneReportDefsReasonRuleSiteSecurity => { ReasonType::ToolsOzoneReportDefsReasonRuleSiteSecurity } ReasonType::ToolsOzoneReportDefsReasonRuleProhibitedSales => { ReasonType::ToolsOzoneReportDefsReasonRuleProhibitedSales } ReasonType::ToolsOzoneReportDefsReasonRuleBanEvasion => { ReasonType::ToolsOzoneReportDefsReasonRuleBanEvasion } ReasonType::ToolsOzoneReportDefsReasonRuleOther => { ReasonType::ToolsOzoneReportDefsReasonRuleOther } ReasonType::ToolsOzoneReportDefsReasonSelfHarmContent => { ReasonType::ToolsOzoneReportDefsReasonSelfHarmContent } ReasonType::ToolsOzoneReportDefsReasonSelfHarmEd => { ReasonType::ToolsOzoneReportDefsReasonSelfHarmEd } ReasonType::ToolsOzoneReportDefsReasonSelfHarmStunts => { ReasonType::ToolsOzoneReportDefsReasonSelfHarmStunts } ReasonType::ToolsOzoneReportDefsReasonSelfHarmSubstances => { ReasonType::ToolsOzoneReportDefsReasonSelfHarmSubstances } ReasonType::ToolsOzoneReportDefsReasonSelfHarmOther => { ReasonType::ToolsOzoneReportDefsReasonSelfHarmOther } ReasonType::Other(v) => ReasonType::Other(v.into_static()), } } } /// Animal welfare violations #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceAnimal; impl std::fmt::Display for ReasonViolenceAnimal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceAnimal") } } /// Extremist content. These reports will be sent only be sent to the application's Moderation Authority. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceExtremistContent; impl std::fmt::Display for ReasonViolenceExtremistContent { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceExtremistContent") } } /// Glorification of violence #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceGlorification; impl std::fmt::Display for ReasonViolenceGlorification { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceGlorification") } } /// Graphic violent content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceGraphicContent; impl std::fmt::Display for ReasonViolenceGraphicContent { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceGraphicContent") } } /// Other violent content #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceOther; impl std::fmt::Display for ReasonViolenceOther { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceOther") } } /// Threats or incitement #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceThreats; impl std::fmt::Display for ReasonViolenceThreats { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceThreats") } } /// Human trafficking #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Hash, jacquard_derive::IntoStatic )] pub struct ReasonViolenceTrafficking; impl std::fmt::Display for ReasonViolenceTrafficking { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "reasonViolenceTrafficking") } }