pub enum ModerationsInput {
String(String),
Strings(Vec<String>),
}
Expand description
Represents the multiple ways the input can be supplied for moderations:
- A single string
- An array of strings
Other forms (such as token arrays) are not commonly used for this endpoint. If you need a more advanced setup, you can adapt this or add variants as needed.
Variants§
Trait Implementations§
Source§impl Clone for ModerationsInput
impl Clone for ModerationsInput
Source§fn clone(&self) -> ModerationsInput
fn clone(&self) -> ModerationsInput
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 ModerationsInput
impl Debug for ModerationsInput
Source§impl<'de> Deserialize<'de> for ModerationsInput
impl<'de> Deserialize<'de> for ModerationsInput
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 ModerationsInput
impl RefUnwindSafe for ModerationsInput
impl Send for ModerationsInput
impl Sync for ModerationsInput
impl Unpin for ModerationsInput
impl UnwindSafe for ModerationsInput
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