pub struct CreateModerationResponseResult {
pub flagged: bool,
pub categories: CreateModerationResponseResultCategories,
pub category_scores: CreateModerationResponseResultCategoryScores,
pub category_applied_input_types: CreateModerationResponseResultCategoryAppliedInputTypes,
}
Fields§
§flagged: bool
Whether any of the below categories are flagged.
categories: CreateModerationResponseResultCategories
A list of the categories, and whether they are flagged or not.
category_scores: CreateModerationResponseResultCategoryScores
A list of the categories along with their scores as predicted by model.
category_applied_input_types: CreateModerationResponseResultCategoryAppliedInputTypes
A list of the categories along with the input type(s) that the score applies to.
Implementations§
Source§impl CreateModerationResponseResult
impl CreateModerationResponseResult
Sourcepub fn builder() -> CreateModerationResponseResultBuilder<((), (), (), ())>
pub fn builder() -> CreateModerationResponseResultBuilder<((), (), (), ())>
Create a builder for building CreateModerationResponseResult
.
On the builder, call .flagged(...)
, .categories(...)
, .category_scores(...)
, .category_applied_input_types(...)
to set the values of the fields.
Finally, call .build()
to create the instance of CreateModerationResponseResult
.
Trait Implementations§
Source§impl Clone for CreateModerationResponseResult
impl Clone for CreateModerationResponseResult
Source§fn clone(&self) -> CreateModerationResponseResult
fn clone(&self) -> CreateModerationResponseResult
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<'de> Deserialize<'de> for CreateModerationResponseResult
impl<'de> Deserialize<'de> for CreateModerationResponseResult
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 CreateModerationResponseResult
impl PartialEq for CreateModerationResponseResult
Source§fn eq(&self, other: &CreateModerationResponseResult) -> bool
fn eq(&self, other: &CreateModerationResponseResult) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateModerationResponseResult
Auto Trait Implementations§
impl Freeze for CreateModerationResponseResult
impl RefUnwindSafe for CreateModerationResponseResult
impl Send for CreateModerationResponseResult
impl Sync for CreateModerationResponseResult
impl Unpin for CreateModerationResponseResult
impl UnwindSafe for CreateModerationResponseResult
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