pub struct ModerationCreateResponse {
pub id: String,
pub model: String,
pub results: Vec<Moderation>,
}Expand description
Represents if a given text input is potentially harmful.
Fields§
§id: StringThe unique identifier for the moderation request.
model: StringThe model used to generate the moderation results.
results: Vec<Moderation>A list of moderation objects.
Trait Implementations§
Source§impl Clone for ModerationCreateResponse
impl Clone for ModerationCreateResponse
Source§impl Debug for ModerationCreateResponse
impl Debug for ModerationCreateResponse
Source§impl<'de> Deserialize<'de> for ModerationCreateResponse
impl<'de> Deserialize<'de> for ModerationCreateResponse
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 FromStr for ModerationCreateResponse
impl FromStr for ModerationCreateResponse
Auto Trait Implementations§
impl Freeze for ModerationCreateResponse
impl RefUnwindSafe for ModerationCreateResponse
impl Send for ModerationCreateResponse
impl Sync for ModerationCreateResponse
impl Unpin for ModerationCreateResponse
impl UnsafeUnpin for ModerationCreateResponse
impl UnwindSafe for ModerationCreateResponse
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