pub struct CreateModerationRequestBuilder { /* private fields */ }
Expand description
Builder for CreateModerationRequest
.
Implementations§
Source§impl CreateModerationRequestBuilder
impl CreateModerationRequestBuilder
Sourcepub fn input<VALUE: Into<ModerationInput>>(&mut self, value: VALUE) -> &mut Self
pub fn input<VALUE: Into<ModerationInput>>(&mut self, value: VALUE) -> &mut Self
Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.
Sourcepub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.
Sourcepub fn build(&self) -> Result<CreateModerationRequest, OpenAIError>
pub fn build(&self) -> Result<CreateModerationRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateModerationRequestBuilder
impl Clone for CreateModerationRequestBuilder
Source§fn clone(&self) -> CreateModerationRequestBuilder
fn clone(&self) -> CreateModerationRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for CreateModerationRequestBuilder
impl RefUnwindSafe for CreateModerationRequestBuilder
impl Send for CreateModerationRequestBuilder
impl Sync for CreateModerationRequestBuilder
impl Unpin for CreateModerationRequestBuilder
impl UnwindSafe for CreateModerationRequestBuilder
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