pub struct OpenAiErrorDetail {
pub message: String,
pub error_type: String,
pub param: Option<String>,
pub code: Option<String>,
}Expand description
OpenAI error detail
Fields§
§message: String§error_type: String§param: Option<String>§code: Option<String>Trait Implementations§
Source§impl Clone for OpenAiErrorDetail
impl Clone for OpenAiErrorDetail
Source§fn clone(&self) -> OpenAiErrorDetail
fn clone(&self) -> OpenAiErrorDetail
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 Debug for OpenAiErrorDetail
impl Debug for OpenAiErrorDetail
Source§impl<'de> Deserialize<'de> for OpenAiErrorDetail
impl<'de> Deserialize<'de> for OpenAiErrorDetail
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 OpenAiErrorDetail
impl RefUnwindSafe for OpenAiErrorDetail
impl Send for OpenAiErrorDetail
impl Sync for OpenAiErrorDetail
impl Unpin for OpenAiErrorDetail
impl UnsafeUnpin for OpenAiErrorDetail
impl UnwindSafe for OpenAiErrorDetail
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