pub struct Moderation {
pub categories: Categories,
pub category_applied_input_types: Option<CategoryAppliedInputTypes>,
pub category_scores: CategoryScores,
pub flagged: bool,
}Expand description
A moderation object.
Fields§
§categories: CategoriesA list of the categories, and whether they are flagged or not.
category_applied_input_types: Option<CategoryAppliedInputTypes>A list of the categories along with the input type(s) that the score applies to.
category_scores: CategoryScoresA list of the categories along with their scores as predicted by the model.
flagged: boolWhether any of the categories are flagged.
Trait Implementations§
Source§impl Clone for Moderation
impl Clone for Moderation
Source§impl Debug for Moderation
impl Debug for Moderation
Source§impl<'de> Deserialize<'de> for Moderation
impl<'de> Deserialize<'de> for Moderation
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 Moderation
impl RefUnwindSafe for Moderation
impl Send for Moderation
impl Sync for Moderation
impl Unpin for Moderation
impl UnsafeUnpin for Moderation
impl UnwindSafe for Moderation
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