Struct openai_req::moderations::Categories
source · pub struct Categories {
pub hate: bool,
pub hate_threatening: bool,
pub self_harm: bool,
pub sexual: bool,
pub sexual_minors: bool,
pub violence: bool,
pub violence_graphic: bool,
}
Fields§
§hate: bool
§hate_threatening: bool
§self_harm: bool
§sexual: bool
§sexual_minors: bool
§violence: bool
§violence_graphic: bool
Trait Implementations§
source§impl Clone for Categories
impl Clone for Categories
source§fn clone(&self) -> Categories
fn clone(&self) -> Categories
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Categories
impl Debug for Categories
source§impl<'de> Deserialize<'de> for Categories
impl<'de> Deserialize<'de> for Categories
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more