pub struct TextModerationResult {
pub id: String,
pub model: String,
pub results: Vec<TextModerationCategory>,
}
Fields§
§id: String
The ID of the moderation result.
model: String
The name of the model used for moderation.
results: Vec<TextModerationCategory>
The moderation results.
Trait Implementations§
Source§impl Debug for TextModerationResult
impl Debug for TextModerationResult
Source§impl<'de> Deserialize<'de> for TextModerationResult
impl<'de> Deserialize<'de> for TextModerationResult
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 TextModerationResult
impl RefUnwindSafe for TextModerationResult
impl Send for TextModerationResult
impl Sync for TextModerationResult
impl Unpin for TextModerationResult
impl UnwindSafe for TextModerationResult
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