#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DataReportContentContent {
#[serde(rename = "type")]
pub r#type: RHashType,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "report_reason")]
pub report_reason: crate::models::UserReportReason,
#[serde(rename = "message_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub message_id: Option<Option<String>>,
}
impl DataReportContentContent {
pub fn new(r#type: RHashType, id: String, report_reason: crate::models::UserReportReason) -> DataReportContentContent {
DataReportContentContent {
r#type,
id,
report_reason,
message_id: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum RHashType {
#[serde(rename = "User")]
User,
}
impl Default for RHashType {
fn default() -> RHashType {
Self::User
}
}