pub enum ResponseErrorCode {
Show 22 variants
ServerError,
RateLimitExceeded,
InvalidPrompt,
DataResidencyMismatch,
BioPolicy,
MisalignmentPolicyViolation,
VectorStoreTimeout,
InvalidImage,
InvalidImageFormat,
InvalidBase64Image,
InvalidImageUrl,
ImageTooLarge,
ImageTooSmall,
ImageParseError,
ImageContentPolicyViolation,
InvalidImageMode,
ImageFileTooLarge,
UnsupportedImageMediaType,
EmptyImageFile,
FailedToDownloadImage,
ImageFileNotFound,
Other(String),
}Variants§
ServerError
RateLimitExceeded
InvalidPrompt
DataResidencyMismatch
BioPolicy
MisalignmentPolicyViolation
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 (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 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<ResponseErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseErrorCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResponseErrorCode
impl PartialEq for ResponseErrorCode
Source§impl Serialize for ResponseErrorCode
impl Serialize for ResponseErrorCode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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