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 ComposeSchema for ChatCompletionModerationError
Available on crate feature openapi only.
impl ComposeSchema for ChatCompletionModerationError
Available on crate feature
openapi only.Source§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
Source§impl ToSchema for ChatCompletionModerationError
Available on crate feature openapi only.
impl ToSchema for ChatCompletionModerationError
Available on crate feature
openapi only.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