pub enum ResponseErrorCode {
Show 18 variants
ServerError,
RateLimitExceeded,
InvalidPrompt,
VectorStoreTimeout,
InvalidImage,
InvalidImageFormat,
InvalidBase64Image,
InvalidImageUrl,
ImageTooLarge,
ImageTooSmall,
ImageParseError,
ImageContentPolicyViolation,
InvalidImageMode,
ImageFileTooLarge,
UnsupportedImageMediaType,
EmptyImageFile,
FailedToDownloadImage,
ImageFileNotFound,
}Expand description
The error code for the response.
JSON schema
{
"description": "The error code for the response.\n",
"type": "string",
"enum": [
"server_error",
"rate_limit_exceeded",
"invalid_prompt",
"vector_store_timeout",
"invalid_image",
"invalid_image_format",
"invalid_base64_image",
"invalid_image_url",
"image_too_large",
"image_too_small",
"image_parse_error",
"image_content_policy_violation",
"invalid_image_mode",
"image_file_too_large",
"unsupported_image_media_type",
"empty_image_file",
"failed_to_download_image",
"image_file_not_found"
]
}Variants§
ServerError
RateLimitExceeded
InvalidPrompt
VectorStoreTimeout
InvalidImage
InvalidImageFormat
InvalidBase64Image
InvalidImageUrl
ImageTooLarge
ImageTooSmall
ImageParseError
ImageContentPolicyViolation
InvalidImageMode
ImageFileTooLarge
UnsupportedImageMediaType
EmptyImageFile
FailedToDownloadImage
ImageFileNotFound
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResponseErrorCode
Source§impl Debug for ResponseErrorCode
impl Debug for ResponseErrorCode
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
Source§impl Display for ResponseErrorCode
impl Display for ResponseErrorCode
impl Eq for ResponseErrorCode
Source§impl FromStr for ResponseErrorCode
impl FromStr for ResponseErrorCode
Source§impl Hash for ResponseErrorCode
impl Hash for ResponseErrorCode
Source§impl Ord for ResponseErrorCode
impl Ord for ResponseErrorCode
Source§fn cmp(&self, other: &ResponseErrorCode) -> Ordering
fn cmp(&self, other: &ResponseErrorCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResponseErrorCode
impl PartialEq for ResponseErrorCode
Source§impl PartialOrd for ResponseErrorCode
impl PartialOrd for ResponseErrorCode
Source§impl Serialize for ResponseErrorCode
impl Serialize for ResponseErrorCode
impl StructuralPartialEq for ResponseErrorCode
Source§impl TryFrom<&String> for ResponseErrorCode
impl TryFrom<&String> for ResponseErrorCode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ResponseErrorCode
impl TryFrom<&str> for ResponseErrorCode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ResponseErrorCode
impl TryFrom<String> for ResponseErrorCode
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
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