#[non_exhaustive]pub enum UpstreamErrorKind {
Show 16 variants
ServiceUnavailableError,
ServerIsOverloaded,
ServerError,
RateLimitError,
RateLimitExceeded,
TemporarilyUnavailable,
AuthenticationError,
InvalidApiKey,
InvalidAuthentication,
Unauthorized,
InvalidRequestError,
PermissionDenied,
InsufficientQuota,
ContentPolicyViolation,
ContextLengthExceeded,
Unknown,
}Expand description
Allowlisted provider type/code values. Unknown strings are never retained.
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.
ServerIsOverloaded
ServerError
RateLimitError
RateLimitExceeded
AuthenticationError
InvalidApiKey
InvalidAuthentication
InvalidRequestError
PermissionDenied
InsufficientQuota
ContentPolicyViolation
ContextLengthExceeded
Explicit provider rejection because the input exceeds the context window.
Unknown
Trait Implementations§
Source§impl Clone for UpstreamErrorKind
impl Clone for UpstreamErrorKind
impl Copy for UpstreamErrorKind
Source§impl Debug for UpstreamErrorKind
impl Debug for UpstreamErrorKind
Source§impl Default for UpstreamErrorKind
impl Default for UpstreamErrorKind
Source§impl<'de> Deserialize<'de> for UpstreamErrorKind
impl<'de> Deserialize<'de> for UpstreamErrorKind
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 UpstreamErrorKind
Source§impl PartialEq for UpstreamErrorKind
impl PartialEq for UpstreamErrorKind
Source§impl Serialize for UpstreamErrorKind
impl Serialize for UpstreamErrorKind
impl StructuralPartialEq for UpstreamErrorKind
Auto Trait Implementations§
impl Freeze for UpstreamErrorKind
impl RefUnwindSafe for UpstreamErrorKind
impl Send for UpstreamErrorKind
impl Sync for UpstreamErrorKind
impl Unpin for UpstreamErrorKind
impl UnsafeUnpin for UpstreamErrorKind
impl UnwindSafe for UpstreamErrorKind
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