Struct openai::moderations::ModerationRequest
source · pub struct ModerationRequest {
pub input: String,
pub model: Option<String>,
}
Fields§
§input: String
The input text to classify.
model: Option<String>
ID of the model to use.
Two content moderations models are available: text-moderation-stable
and text-moderation-latest
.
Trait Implementations§
source§impl Clone for ModerationRequest
impl Clone for ModerationRequest
source§fn clone(&self) -> ModerationRequest
fn clone(&self) -> ModerationRequest
Returns a copy 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 ModerationRequest
impl Debug for ModerationRequest
Auto Trait Implementations§
impl RefUnwindSafe for ModerationRequest
impl Send for ModerationRequest
impl Sync for ModerationRequest
impl Unpin for ModerationRequest
impl UnwindSafe for ModerationRequest
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