pub struct OpenAiApiError {
pub message: String,
pub type_: String,
pub param: Option<String>,
pub code: Option<String>,
}Expand description
Standard OpenAI API error payload.
Fields§
§message: StringHuman-readable message describing the error.
type_: StringMachine-readable error type.
param: Option<String>Parameter related to the error, if any.
code: Option<String>Error code value, if provided.
Trait Implementations§
Source§impl Clone for OpenAiApiError
impl Clone for OpenAiApiError
Source§fn clone(&self) -> OpenAiApiError
fn clone(&self) -> OpenAiApiError
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 moreSource§impl Debug for OpenAiApiError
impl Debug for OpenAiApiError
Source§impl<'de> Deserialize<'de> for OpenAiApiError
impl<'de> Deserialize<'de> for OpenAiApiError
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
Source§impl PartialEq for OpenAiApiError
impl PartialEq for OpenAiApiError
Source§impl Serialize for OpenAiApiError
impl Serialize for OpenAiApiError
impl Eq for OpenAiApiError
impl StructuralPartialEq for OpenAiApiError
Auto Trait Implementations§
impl Freeze for OpenAiApiError
impl RefUnwindSafe for OpenAiApiError
impl Send for OpenAiApiError
impl Sync for OpenAiApiError
impl Unpin for OpenAiApiError
impl UnsafeUnpin for OpenAiApiError
impl UnwindSafe for OpenAiApiError
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