pub enum BetaErrorType {
InvalidRequestError,
AuthenticationError,
BillingError,
PermissionError,
RequestTooLarge,
NotFoundError,
RateLimitError,
TimeoutError,
ApiError,
OverloadedError,
}Expand description
Typed beta error codes.
Variants§
InvalidRequestError
HTTP 400 (and may be used for other unlisted 4XX errors).
AuthenticationError
HTTP 401.
BillingError
Billing-related error type; HTTP status is not explicitly defined in Errors.md.
PermissionError
HTTP 403.
RequestTooLarge
HTTP 413.
NotFoundError
HTTP 404.
RateLimitError
HTTP 429.
TimeoutError
Timeout-related error type; HTTP status is not explicitly defined in Errors.md.
ApiError
HTTP 500.
OverloadedError
HTTP 529.
Trait Implementations§
Source§impl Clone for BetaErrorType
impl Clone for BetaErrorType
Source§fn clone(&self) -> BetaErrorType
fn clone(&self) -> BetaErrorType
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 moreSource§impl Debug for BetaErrorType
impl Debug for BetaErrorType
Source§impl<'de> Deserialize<'de> for BetaErrorType
impl<'de> Deserialize<'de> for BetaErrorType
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 PartialEq for BetaErrorType
impl PartialEq for BetaErrorType
Source§impl Serialize for BetaErrorType
impl Serialize for BetaErrorType
impl Eq for BetaErrorType
impl StructuralPartialEq for BetaErrorType
Auto Trait Implementations§
impl Freeze for BetaErrorType
impl RefUnwindSafe for BetaErrorType
impl Send for BetaErrorType
impl Sync for BetaErrorType
impl Unpin for BetaErrorType
impl UnsafeUnpin for BetaErrorType
impl UnwindSafe for BetaErrorType
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