openai_struct/models/
create_moderation_response_categories.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub CreateModerationResponseCategories : A list of the categories, and whether they are flagged or not.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct CreateModerationResponseCategories {
18    /// Content that expresses, incites, or promotes harassing language towards any target.
19    #[serde(rename = "harassment")]
20    pub harassment: bool,
21    /// Harassment content that also includes violence or serious harm towards any target.
22    #[serde(rename = "harassment/threatening")]
23    pub harassmentthreatening: bool,
24    /// Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment.
25    #[serde(rename = "hate")]
26    pub hate: bool,
27    /// Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
28    #[serde(rename = "hate/threatening")]
29    pub hatethreatening: bool,
30    /// Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, \"how to shoplift\" would fit this category.
31    #[serde(rename = "illicit")]
32    pub illicit: bool,
33    /// Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.
34    #[serde(rename = "illicit/violent")]
35    pub illicitviolent: bool,
36    /// Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
37    #[serde(rename = "self-harm")]
38    pub self_harm: bool,
39    /// Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.
40    #[serde(rename = "self-harm/instructions")]
41    pub self_harminstructions: bool,
42    /// Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.
43    #[serde(rename = "self-harm/intent")]
44    pub self_harmintent: bool,
45    /// Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).
46    #[serde(rename = "sexual")]
47    pub sexual: bool,
48    /// Sexual content that includes an individual who is under 18 years old.
49    #[serde(rename = "sexual/minors")]
50    pub sexualminors: bool,
51    /// Content that depicts death, violence, or physical injury.
52    #[serde(rename = "violence")]
53    pub violence: bool,
54    /// Content that depicts death, violence, or physical injury in graphic detail.
55    #[serde(rename = "violence/graphic")]
56    pub violencegraphic: bool,
57}