pub struct CreateModerationRequest {
pub input: Value,
pub model: Option<Value>,
}
Fields§
§input: Value
Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.
model: Option<Value>
The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.
Trait Implementations§
Source§impl Debug for CreateModerationRequest
impl Debug for CreateModerationRequest
Source§impl<'de> Deserialize<'de> for CreateModerationRequest
impl<'de> Deserialize<'de> for CreateModerationRequest
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 CreateModerationRequest
impl RefUnwindSafe for CreateModerationRequest
impl Send for CreateModerationRequest
impl Sync for CreateModerationRequest
impl Unpin for CreateModerationRequest
impl UnwindSafe for CreateModerationRequest
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