#[non_exhaustive]pub enum OtherErrorKind {
Validation,
UnexpectedApiResponse,
Other,
}Expand description
Classification for miscellaneous errors that don’t fit other categories.
This enum provides additional categorization for application-specific errors that aren’t covered by the main error variants.
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.
Validation
Request validation errors.
Indicates that request parameters failed validation before being sent to the API.
UnexpectedApiResponse
Unexpected API response errors.
Indicates that the API returned an unexpected response format, such as multiple results when only one was expected.
Other
Unclassified errors.
Catch-all category for errors that don’t fit other classifications.
Trait Implementations§
Source§impl Clone for OtherErrorKind
impl Clone for OtherErrorKind
Source§fn clone(&self) -> OtherErrorKind
fn clone(&self) -> OtherErrorKind
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 OtherErrorKind
impl Debug for OtherErrorKind
Source§impl PartialEq for OtherErrorKind
impl PartialEq for OtherErrorKind
Source§fn eq(&self, other: &OtherErrorKind) -> bool
fn eq(&self, other: &OtherErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OtherErrorKind
Auto Trait Implementations§
impl Freeze for OtherErrorKind
impl RefUnwindSafe for OtherErrorKind
impl Send for OtherErrorKind
impl Sync for OtherErrorKind
impl Unpin for OtherErrorKind
impl UnsafeUnpin for OtherErrorKind
impl UnwindSafe for OtherErrorKind
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