pub enum ModerationContentPart {
Text {
text: String,
},
ImageUrl {
image_url: ModerationImageUrl,
},
}Expand description
A single multimodal content part for moderation input.
Variants§
Text
A text part.
ImageUrl
An image referenced by URL.
Fields
§
image_url: ModerationImageUrlThe image URL descriptor.
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
Auto Trait Implementations§
impl Freeze for ModerationContentPart
impl RefUnwindSafe for ModerationContentPart
impl Send for ModerationContentPart
impl Sync for ModerationContentPart
impl Unpin for ModerationContentPart
impl UnsafeUnpin 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