pub struct CreateModerationResponse {
pub id: String,
pub model: String,
pub results: Vec<ModerationResult>,
pub headers: Option<HashMap<String, String>>,
}
Expand description
Represents the response from a moderation check.
Fields§
§id: String
Unique identifier for the moderation response.
model: String
Model used for the moderation.
results: Vec<ModerationResult>
Results of the moderation check.
headers: Option<HashMap<String, String>>
Optional headers from the response.
Trait Implementations§
Source§impl Debug for CreateModerationResponse
impl Debug for CreateModerationResponse
Source§impl<'de> Deserialize<'de> for CreateModerationResponse
impl<'de> Deserialize<'de> for CreateModerationResponse
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 CreateModerationResponse
impl RefUnwindSafe for CreateModerationResponse
impl Send for CreateModerationResponse
impl Sync for CreateModerationResponse
impl Unpin for CreateModerationResponse
impl UnwindSafe for CreateModerationResponse
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