pub struct OpenAiErrorError {
pub message: String,
pub type: String,
pub code: Option<String>,
}Expand description
OpenAiErrorError model.
Fields§
§message: StringHuman-readable cause, including where an operator fixes it.
type: String§code: Option<String>Machine-readable code. embedding_unavailable = no provider configured (501, permanent).
embedding_failed = the configured provider did not answer (503, retryable).
Trait Implementations§
Source§impl Clone for OpenAiErrorError
impl Clone for OpenAiErrorError
Source§fn clone(&self) -> OpenAiErrorError
fn clone(&self) -> OpenAiErrorError
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 OpenAiErrorError
impl Debug for OpenAiErrorError
Source§impl Default for OpenAiErrorError
impl Default for OpenAiErrorError
Source§fn default() -> OpenAiErrorError
fn default() -> OpenAiErrorError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenAiErrorError
impl<'de> Deserialize<'de> for OpenAiErrorError
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 OpenAiErrorError
impl PartialEq for OpenAiErrorError
Source§impl Serialize for OpenAiErrorError
impl Serialize for OpenAiErrorError
impl StructuralPartialEq for OpenAiErrorError
Auto Trait Implementations§
impl Freeze for OpenAiErrorError
impl RefUnwindSafe for OpenAiErrorError
impl Send for OpenAiErrorError
impl Sync for OpenAiErrorError
impl Unpin for OpenAiErrorError
impl UnsafeUnpin for OpenAiErrorError
impl UnwindSafe for OpenAiErrorError
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