pub enum ErrorCategory {
Validation,
Authentication,
Authorization,
Conflict,
RateLimit,
NotFound,
Server,
Unknown,
}Expand description
API error category labels.
Variants§
Validation
A stable label variant.
Authentication
A stable label variant.
Authorization
A stable label variant.
Conflict
A stable label variant.
RateLimit
A stable label variant.
NotFound
A stable label variant.
Server
A stable label variant.
Unknown
A stable label variant.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorCategory
impl Clone for ErrorCategory
Source§fn clone(&self) -> ErrorCategory
fn clone(&self) -> ErrorCategory
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 ErrorCategory
impl Debug for ErrorCategory
Source§impl Default for ErrorCategory
impl Default for ErrorCategory
Source§impl Display for ErrorCategory
impl Display for ErrorCategory
Source§impl FromStr for ErrorCategory
impl FromStr for ErrorCategory
Source§impl Hash for ErrorCategory
impl Hash for ErrorCategory
Source§impl Ord for ErrorCategory
impl Ord for ErrorCategory
Source§fn cmp(&self, other: &ErrorCategory) -> Ordering
fn cmp(&self, other: &ErrorCategory) -> 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 ErrorCategory
impl PartialEq for ErrorCategory
Source§fn eq(&self, other: &ErrorCategory) -> bool
fn eq(&self, other: &ErrorCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ErrorCategory
impl PartialOrd for ErrorCategory
impl Copy for ErrorCategory
impl Eq for ErrorCategory
impl StructuralPartialEq for ErrorCategory
Auto Trait Implementations§
impl Freeze for ErrorCategory
impl RefUnwindSafe for ErrorCategory
impl Send for ErrorCategory
impl Sync for ErrorCategory
impl Unpin for ErrorCategory
impl UnsafeUnpin for ErrorCategory
impl UnwindSafe for ErrorCategory
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