pub enum ModerationContentPart {
Text {
text: String,
},
ImageUrl {
image_url: ModerationImageUrl,
},
}
Expand description
Content part for multi-modal moderation input
Variants§
Text
An object describing text to classify
ImageUrl
An object describing an image to classify
Fields
§
image_url: ModerationImageUrl
Contains either an image URL or a data URL for a base64 encoded image
Trait Implementations§
Source§impl Clone for ModerationContentPart
impl Clone for ModerationContentPart
Source§fn clone(&self) -> ModerationContentPart
fn clone(&self) -> ModerationContentPart
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 ModerationContentPart
impl Debug for ModerationContentPart
Source§impl<'de> Deserialize<'de> for ModerationContentPart
impl<'de> Deserialize<'de> for ModerationContentPart
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 ModerationContentPart
impl PartialEq for ModerationContentPart
Source§impl Serialize for ModerationContentPart
impl Serialize for ModerationContentPart
impl StructuralPartialEq for ModerationContentPart
Auto Trait Implementations§
impl Freeze for ModerationContentPart
impl RefUnwindSafe for ModerationContentPart
impl Send for ModerationContentPart
impl Sync for ModerationContentPart
impl Unpin for ModerationContentPart
impl UnwindSafe for ModerationContentPart
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