pub struct CategoryScores {Show 13 fields
pub harassment: Option<f32>,
pub harassment_threatening: Option<f32>,
pub hate: Option<f32>,
pub hate_threatening: Option<f32>,
pub illicit: Option<f32>,
pub illicit_violent: Option<f32>,
pub self_harm: Option<f32>,
pub self_harm_instructions: Option<f32>,
pub self_harm_intent: Option<f32>,
pub sexual: Option<f32>,
pub sexual_minors: Option<f32>,
pub violence: Option<f32>,
pub violence_graphic: Option<f32>,
}Expand description
A list of the categories along with their scores as predicted by the model.
Fields§
§harassment: Option<f32>§harassment_threatening: Option<f32>§hate: Option<f32>§hate_threatening: Option<f32>§illicit: Option<f32>§illicit_violent: Option<f32>§self_harm: Option<f32>§self_harm_instructions: Option<f32>§self_harm_intent: Option<f32>§sexual: Option<f32>§sexual_minors: Option<f32>§violence: Option<f32>§violence_graphic: Option<f32>Trait Implementations§
Source§impl Clone for CategoryScores
impl Clone for CategoryScores
Source§impl Debug for CategoryScores
impl Debug for CategoryScores
Source§impl Default for CategoryScores
impl Default for CategoryScores
Source§impl<'de> Deserialize<'de> for CategoryScores
impl<'de> Deserialize<'de> for CategoryScores
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
Auto Trait Implementations§
impl Freeze for CategoryScores
impl RefUnwindSafe for CategoryScores
impl Send for CategoryScores
impl Sync for CategoryScores
impl Unpin for CategoryScores
impl UnsafeUnpin for CategoryScores
impl UnwindSafe for CategoryScores
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more