pub struct ChatCompletionModerationError {
pub code: String,
pub message: String,
}Available on crate feature
chat-completion-types only.Expand description
An error produced while attempting moderation.
Fields§
§code: StringThe error code.
message: StringThe error message.
Trait Implementations§
Source§impl Clone for ChatCompletionModerationError
impl Clone for ChatCompletionModerationError
Source§fn clone(&self) -> ChatCompletionModerationError
fn clone(&self) -> ChatCompletionModerationError
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 moreSource§impl<'de> Deserialize<'de> for ChatCompletionModerationError
impl<'de> Deserialize<'de> for ChatCompletionModerationError
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
impl StructuralPartialEq for ChatCompletionModerationError
Auto Trait Implementations§
impl Freeze for ChatCompletionModerationError
impl RefUnwindSafe for ChatCompletionModerationError
impl Send for ChatCompletionModerationError
impl Sync for ChatCompletionModerationError
impl Unpin for ChatCompletionModerationError
impl UnsafeUnpin for ChatCompletionModerationError
impl UnwindSafe for ChatCompletionModerationError
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