pub struct Moderations { /* private fields */ }Expand description
The moderations resource.
Implementations§
Source§impl Moderations
impl Moderations
Sourcepub async fn create(
&self,
request: ModerationRequest,
) -> Result<ModerationResponse, OpenAIError>
pub async fn create( &self, request: ModerationRequest, ) -> Result<ModerationResponse, OpenAIError>
Classify whether the input violates the provider’s content policy.
Trait Implementations§
Source§impl Clone for Moderations
impl Clone for Moderations
Source§fn clone(&self) -> Moderations
fn clone(&self) -> Moderations
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for Moderations
impl !UnwindSafe for Moderations
impl Freeze for Moderations
impl Send for Moderations
impl Sync for Moderations
impl Unpin for Moderations
impl UnsafeUnpin for Moderations
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