revolt_api/models/
reported_content_one_of.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ReportedContentOneOf {
17 #[serde(rename = "type")]
18 pub r#type: RHashType,
19 #[serde(rename = "id")]
21 pub id: String,
22 #[serde(rename = "report_reason")]
23 pub report_reason: crate::models::ContentReportReason,
24}
25
26impl ReportedContentOneOf {
27 pub fn new(r#type: RHashType, id: String, report_reason: crate::models::ContentReportReason) -> ReportedContentOneOf {
29 ReportedContentOneOf {
30 r#type,
31 id,
32 report_reason,
33 }
34 }
35}
36
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39pub enum RHashType {
40 #[serde(rename = "Message")]
41 Message,
42}
43
44impl Default for RHashType {
45 fn default() -> RHashType {
46 Self::Message
47 }
48}
49