1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* VRChat API Documentation
*
*
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ReportCategory : A category used for reporting content
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReportCategory {
/// The description of the report category
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// The label of the report category
#[serde(rename = "text")]
pub text: String,
/// The title of the report category
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// The tooltip that describes the category
#[serde(rename = "tooltip")]
pub tooltip: String,
}
impl ReportCategory {
/// A category used for reporting content
pub fn new(text: String, tooltip: String) -> ReportCategory {
ReportCategory {
description: None,
text,
title: None,
tooltip,
}
}
}