vrchatapi 1.20.8-nightly.11

VRChat API Client for Rust
Documentation
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,
        }
    }
}