Struct CreateModerationResponseCategoryScores

Source
pub struct CreateModerationResponseCategoryScores {
Show 13 fields pub harassment: f32, pub harassmentthreatening: f32, pub hate: f32, pub hatethreatening: f32, pub illicit: f32, pub illicitviolent: f32, pub self_harm: f32, pub self_harminstructions: f32, pub self_harmintent: f32, pub sexual: f32, pub sexualminors: f32, pub violence: f32, pub violencegraphic: f32,
}

Fields§

§harassment: f32

The score for the category ‘harassment’.

§harassmentthreatening: f32

The score for the category ‘harassment/threatening’.

§hate: f32

The score for the category ‘hate’.

§hatethreatening: f32

The score for the category ‘hate/threatening’.

§illicit: f32

The score for the category ‘illicit’.

§illicitviolent: f32

The score for the category ‘illicit/violent’.

§self_harm: f32

The score for the category ‘self-harm’.

§self_harminstructions: f32

The score for the category ‘self-harm/instructions’.

§self_harmintent: f32

The score for the category ‘self-harm/intent’.

§sexual: f32

The score for the category ‘sexual’.

§sexualminors: f32

The score for the category ‘sexual/minors’.

§violence: f32

The score for the category ‘violence’.

§violencegraphic: f32

The score for the category ‘violence/graphic’.

Trait Implementations§

Source§

impl Debug for CreateModerationResponseCategoryScores

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CreateModerationResponseCategoryScores

Source§

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 Serialize for CreateModerationResponseCategoryScores

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,