pub enum ModerationSide {
ModerationResults {
model: String,
results: Vec<ModerationSideResult>,
},
Error {
code: String,
message: String,
},
}Expand description
The moderation outcome for one side (input or output) of the completion: either successful results or an error produced while attempting moderation.
Variants§
ModerationResults
Successful moderation results. Always moderation_results.
Fields
§
results: Vec<ModerationSideResult>A list of moderation results.
Error
An error produced while attempting moderation. Always error.
Trait Implementations§
Source§impl Clone for ModerationSide
impl Clone for ModerationSide
Source§fn clone(&self) -> ModerationSide
fn clone(&self) -> ModerationSide
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModerationSide
impl Debug for ModerationSide
Source§impl<'de> Deserialize<'de> for ModerationSide
impl<'de> Deserialize<'de> for ModerationSide
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 ModerationSide
impl RefUnwindSafe for ModerationSide
impl Send for ModerationSide
impl Sync for ModerationSide
impl Unpin for ModerationSide
impl UnsafeUnpin for ModerationSide
impl UnwindSafe for ModerationSide
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