pub struct OpenAIAPIErrorData {
pub message: String,
pub param: Option<String>,
pub code: Option<String>,
}
Expand description
The payload of an OpenAI API error.
Fields§
§message: String
The message of the error.
param: Option<String>
Any associated data with the error.
code: Option<String>
The code of the error.
Trait Implementations§
Source§impl Clone for OpenAIAPIErrorData
impl Clone for OpenAIAPIErrorData
Source§fn clone(&self) -> OpenAIAPIErrorData
fn clone(&self) -> OpenAIAPIErrorData
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 OpenAIAPIErrorData
impl Debug for OpenAIAPIErrorData
Source§impl<'de> Deserialize<'de> for OpenAIAPIErrorData
impl<'de> Deserialize<'de> for OpenAIAPIErrorData
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
Auto Trait Implementations§
impl Freeze for OpenAIAPIErrorData
impl RefUnwindSafe for OpenAIAPIErrorData
impl Send for OpenAIAPIErrorData
impl Sync for OpenAIAPIErrorData
impl Unpin for OpenAIAPIErrorData
impl UnwindSafe for OpenAIAPIErrorData
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