Enum facti_api::error::ApiErrorKind
source · pub enum ApiErrorKind {
Show 16 variants
InvalidApiKey,
InvalidRequest,
InternalError,
Forbidden,
InvalidModRelease,
InvalidModUpload,
InvalidImageUpload,
UnknownMod,
MissingApiKey,
UrlParseFailed,
DeserializationFailed,
ImageIo,
InvalidPageSize,
InvalidSortMode,
InvalidSortOrder,
Unknown,
}Variants§
InvalidApiKey
InvalidRequest
InternalError
Forbidden
InvalidModRelease
InvalidModUpload
InvalidImageUpload
UnknownMod
MissingApiKey
UrlParseFailed
DeserializationFailed
ImageIo
InvalidPageSize
InvalidSortMode
InvalidSortOrder
Unknown
Implementations§
source§impl ApiErrorKind
impl ApiErrorKind
pub fn parse<T: Into<String>>(s: T) -> ApiErrorKind
Trait Implementations§
source§impl Clone for ApiErrorKind
impl Clone for ApiErrorKind
source§fn clone(&self) -> ApiErrorKind
fn clone(&self) -> ApiErrorKind
Returns a copy 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 ApiErrorKind
impl Debug for ApiErrorKind
source§impl Display for ApiErrorKind
impl Display for ApiErrorKind
source§impl FromStr for ApiErrorKind
impl FromStr for ApiErrorKind
source§impl PartialEq<ApiErrorKind> for ApiErrorKind
impl PartialEq<ApiErrorKind> for ApiErrorKind
source§fn eq(&self, other: &ApiErrorKind) -> bool
fn eq(&self, other: &ApiErrorKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ApiErrorKind
impl Eq for ApiErrorKind
impl StructuralEq for ApiErrorKind
impl StructuralPartialEq for ApiErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ApiErrorKind
impl Send for ApiErrorKind
impl Sync for ApiErrorKind
impl Unpin for ApiErrorKind
impl UnwindSafe for ApiErrorKind
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.