pub enum CreateModerationRequestInput {
String(String),
ArrayOfString(Vec<String>),
_2(Vec<CreateModerationRequestInput2>),
}
Expand description
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.
Variants§
String(String)
A string of text to classify for moderation.
ArrayOfString(Vec<String>)
An array of strings to classify for moderation.
_2(Vec<CreateModerationRequestInput2>)
An array of multi-modal inputs to the moderation model.
Trait Implementations§
Source§impl Clone for CreateModerationRequestInput
impl Clone for CreateModerationRequestInput
Source§fn clone(&self) -> CreateModerationRequestInput
fn clone(&self) -> CreateModerationRequestInput
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 Debug for CreateModerationRequestInput
impl Debug for CreateModerationRequestInput
Source§impl<'de> Deserialize<'de> for CreateModerationRequestInput
impl<'de> Deserialize<'de> for CreateModerationRequestInput
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 CreateModerationRequestInput
impl PartialEq for CreateModerationRequestInput
Source§fn eq(&self, other: &CreateModerationRequestInput) -> bool
fn eq(&self, other: &CreateModerationRequestInput) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateModerationRequestInput
Auto Trait Implementations§
impl Freeze for CreateModerationRequestInput
impl RefUnwindSafe for CreateModerationRequestInput
impl Send for CreateModerationRequestInput
impl Sync for CreateModerationRequestInput
impl Unpin for CreateModerationRequestInput
impl UnwindSafe for CreateModerationRequestInput
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