pub struct ModerationCategories {
pub hate: bool,
pub hate_threatening: bool,
pub harassment: bool,
pub harassment_threatening: bool,
pub self_harm: bool,
pub self_harm_intent: bool,
pub self_harm_instructions: bool,
pub sexual: bool,
pub sexual_minors: bool,
pub violence: bool,
pub violence_graphic: bool,
}Expand description
Categories that were checked in the moderation.
Fields§
§hate: boolContent that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
hate_threatening: boolHateful content that also includes violence or serious harm towards the targeted group.
harassment: boolContent that expresses, incites, or promotes harassing language towards any target.
harassment_threatening: boolHarassment content that also includes violence or serious harm towards any target.
self_harm: boolContent that promotes, encourages, or depicts acts of self-harm.
self_harm_intent: boolContent where the speaker expresses that they are engaging or intend to engage in acts of self-harm.
self_harm_instructions: boolContent that encourages performing acts of self-harm.
sexual: boolContent meant to arouse sexual excitement.
sexual_minors: boolSexual content that includes an individual who is under 18 years old.
violence: boolContent that depicts death, violence, or physical injury.
violence_graphic: boolContent that depicts death, violence, or physical injury in graphic detail.
Trait Implementations§
Source§impl Clone for ModerationCategories
impl Clone for ModerationCategories
Source§fn clone(&self) -> ModerationCategories
fn clone(&self) -> ModerationCategories
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more