pub struct CategoryScore {Show 13 fields
pub hate: f32,
pub hate_threatening: f32,
pub harassment: f32,
pub harassment_threatening: f32,
pub illicit: f32,
pub illicit_violent: f32,
pub self_harm: f32,
pub self_harm_intent: f32,
pub self_harm_instructions: f32,
pub sexual: f32,
pub sexual_minors: f32,
pub violence: f32,
pub violence_graphic: f32,
}
Expand description
A list of the categories along with their scores as predicted by model.
Fields§
§hate: f32
The score for the category ‘hate’.
hate_threatening: f32
The score for the category ‘hate/threatening’.
harassment: f32
The score for the category ‘harassment’.
harassment_threatening: f32
The score for the category ‘harassment/threatening’.
illicit: f32
The score for the category ‘illicit’.
illicit_violent: f32
The score for the category ‘illicit/violent’.
self_harm: f32
The score for the category ‘self-harm’.
self_harm_intent: f32
The score for the category ‘self-harm/intent’.
self_harm_instructions: f32
The score for the category ‘self-harm/instructions’.
sexual: f32
The score for the category ‘sexual’.
sexual_minors: f32
The score for the category ‘sexual/minors’.
violence: f32
The score for the category ‘violence’.
violence_graphic: f32
The score for the category ‘violence/graphic’.
Trait Implementations§
Source§impl Clone for CategoryScore
impl Clone for CategoryScore
Source§fn clone(&self) -> CategoryScore
fn clone(&self) -> CategoryScore
Returns a duplicate 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 CategoryScore
impl Debug for CategoryScore
Source§impl<'de> Deserialize<'de> for CategoryScore
impl<'de> Deserialize<'de> for CategoryScore
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
Source§impl PartialEq for CategoryScore
impl PartialEq for CategoryScore
Source§impl Serialize for CategoryScore
impl Serialize for CategoryScore
impl StructuralPartialEq for CategoryScore
Auto Trait Implementations§
impl Freeze for CategoryScore
impl RefUnwindSafe for CategoryScore
impl Send for CategoryScore
impl Sync for CategoryScore
impl Unpin for CategoryScore
impl UnwindSafe for CategoryScore
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