pub enum ResponseErrorCode {
Show 19 variants
ServerError,
RateLimitExceeded,
InvalidPrompt,
VectorStoreTimeout,
InvalidImage,
InvalidImageFormat,
InvalidBase64Image,
InvalidImageUrl,
ImageTooLarge,
ImageTooSmall,
ImageParseError,
ImageContentPolicyViolation,
InvalidImageMode,
ImageFileTooLarge,
UnsupportedImageMediaType,
EmptyImageFile,
FailedToDownloadImage,
ImageFileNotFound,
Other(String),
}
Expand description
The error code for the response.
Variants§
ServerError
RateLimitExceeded
InvalidPrompt
VectorStoreTimeout
InvalidImage
InvalidImageFormat
InvalidBase64Image
InvalidImageUrl
ImageTooLarge
ImageTooSmall
ImageParseError
ImageContentPolicyViolation
InvalidImageMode
ImageFileTooLarge
UnsupportedImageMediaType
EmptyImageFile
FailedToDownloadImage
ImageFileNotFound
Other(String)
Trait Implementations§
Source§impl Clone for ResponseErrorCode
impl Clone for ResponseErrorCode
Source§fn clone(&self) -> ResponseErrorCode
fn clone(&self) -> ResponseErrorCode
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 moreAuto Trait Implementations§
impl Freeze for ResponseErrorCode
impl RefUnwindSafe for ResponseErrorCode
impl Send for ResponseErrorCode
impl Sync for ResponseErrorCode
impl Unpin 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