#[non_exhaustive]pub enum ResponseErrorCode {
Show 21 variants
ServerError,
RateLimitExceeded,
InvalidPrompt,
DataResidencyMismatch,
BioPolicy,
VectorStoreTimeout,
InvalidImage,
InvalidImageFormat,
InvalidBase64Image,
InvalidImageUrl,
ImageTooLarge,
ImageTooSmall,
ImageParseError,
ImageContentPolicyViolation,
InvalidImageMode,
ImageFileTooLarge,
UnsupportedImageMediaType,
EmptyImageFile,
FailedToDownloadImage,
ImageFileNotFound,
Other(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ServerError
RateLimitExceeded
InvalidPrompt
DataResidencyMismatch
BioPolicy
VectorStoreTimeout
InvalidImage
InvalidImageFormat
InvalidBase64Image
InvalidImageUrl
ImageTooLarge
ImageTooSmall
ImageParseError
ImageContentPolicyViolation
InvalidImageMode
ImageFileTooLarge
UnsupportedImageMediaType
EmptyImageFile
FailedToDownloadImage
ImageFileNotFound
Other(String)
Preserve backend-specific and future error codes verbatim.
Trait Implementations§
Source§impl Clone for ResponseErrorCode
impl Clone for ResponseErrorCode
Source§impl Debug for ResponseErrorCode
impl Debug for ResponseErrorCode
Source§impl DeclaredFields for ResponseErrorCode
impl DeclaredFields for ResponseErrorCode
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ResponseErrorCode
impl<'de> Deserialize<'de> for ResponseErrorCode
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 Eq for ResponseErrorCode
Source§impl PartialEq for ResponseErrorCode
impl PartialEq for ResponseErrorCode
Source§impl Serialize for ResponseErrorCode
impl Serialize for ResponseErrorCode
impl StructuralPartialEq for ResponseErrorCode
Auto Trait Implementations§
impl Freeze for ResponseErrorCode
impl RefUnwindSafe for ResponseErrorCode
impl Send for ResponseErrorCode
impl Sync for ResponseErrorCode
impl Unpin for ResponseErrorCode
impl UnsafeUnpin for ResponseErrorCode
impl UnwindSafe for ResponseErrorCode
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