pub enum ApiResponseErrorKind {
Show 14 variants
InvalidApiKey(InvalidApiKey),
IncorrectUsernameOrPassword(IncorrectUsernameOrPassword),
IncorrectCaptchaCode(IncorrectCaptchaCode),
IncorrectTOTPCode(IncorrectTOTPCode),
TOTPTokenTimedOut(TOTPTokenTimedOut),
InvalidTOTPToken(InvalidTOTPToken),
InvalidUserID(InvalidUserID),
InvalidCollectionID(InvalidCollectionID),
InvalidGameID(InvalidGameID),
InvalidUploadID(InvalidUploadID),
InvalidBuildID(InvalidBuildID),
InvalidTargetBuildID(InvalidTargetBuildID),
NoUpgradePath(NoUpgradePath),
Other,
}Expand description
All possible errors returned from the Itch.io API
Variants§
InvalidApiKey(InvalidApiKey)
IncorrectUsernameOrPassword(IncorrectUsernameOrPassword)
IncorrectCaptchaCode(IncorrectCaptchaCode)
IncorrectTOTPCode(IncorrectTOTPCode)
TOTPTokenTimedOut(TOTPTokenTimedOut)
InvalidTOTPToken(InvalidTOTPToken)
InvalidUserID(InvalidUserID)
InvalidCollectionID(InvalidCollectionID)
InvalidGameID(InvalidGameID)
InvalidUploadID(InvalidUploadID)
InvalidBuildID(InvalidBuildID)
InvalidTargetBuildID(InvalidTargetBuildID)
NoUpgradePath(NoUpgradePath)
Other
Trait Implementations§
Source§impl Debug for ApiResponseErrorKind
impl Debug for ApiResponseErrorKind
Source§impl Display for ApiResponseErrorKind
impl Display for ApiResponseErrorKind
Source§impl Error for ApiResponseErrorKind
impl Error for ApiResponseErrorKind
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&[String]> for ApiResponseErrorKind
impl From<&[String]> for ApiResponseErrorKind
Source§impl From<IncorrectCaptchaCode> for ApiResponseErrorKind
impl From<IncorrectCaptchaCode> for ApiResponseErrorKind
Source§fn from(source: IncorrectCaptchaCode) -> Self
fn from(source: IncorrectCaptchaCode) -> Self
Converts to this type from the input type.
Source§impl From<IncorrectTOTPCode> for ApiResponseErrorKind
impl From<IncorrectTOTPCode> for ApiResponseErrorKind
Source§fn from(source: IncorrectTOTPCode) -> Self
fn from(source: IncorrectTOTPCode) -> Self
Converts to this type from the input type.
Source§impl From<IncorrectUsernameOrPassword> for ApiResponseErrorKind
impl From<IncorrectUsernameOrPassword> for ApiResponseErrorKind
Source§fn from(source: IncorrectUsernameOrPassword) -> Self
fn from(source: IncorrectUsernameOrPassword) -> Self
Converts to this type from the input type.
Source§impl From<InvalidApiKey> for ApiResponseErrorKind
impl From<InvalidApiKey> for ApiResponseErrorKind
Source§fn from(source: InvalidApiKey) -> Self
fn from(source: InvalidApiKey) -> Self
Converts to this type from the input type.
Source§impl From<InvalidBuildID> for ApiResponseErrorKind
impl From<InvalidBuildID> for ApiResponseErrorKind
Source§fn from(source: InvalidBuildID) -> Self
fn from(source: InvalidBuildID) -> Self
Converts to this type from the input type.
Source§impl From<InvalidCollectionID> for ApiResponseErrorKind
impl From<InvalidCollectionID> for ApiResponseErrorKind
Source§fn from(source: InvalidCollectionID) -> Self
fn from(source: InvalidCollectionID) -> Self
Converts to this type from the input type.
Source§impl From<InvalidGameID> for ApiResponseErrorKind
impl From<InvalidGameID> for ApiResponseErrorKind
Source§fn from(source: InvalidGameID) -> Self
fn from(source: InvalidGameID) -> Self
Converts to this type from the input type.
Source§impl From<InvalidTOTPToken> for ApiResponseErrorKind
impl From<InvalidTOTPToken> for ApiResponseErrorKind
Source§fn from(source: InvalidTOTPToken) -> Self
fn from(source: InvalidTOTPToken) -> Self
Converts to this type from the input type.
Source§impl From<InvalidTargetBuildID> for ApiResponseErrorKind
impl From<InvalidTargetBuildID> for ApiResponseErrorKind
Source§fn from(source: InvalidTargetBuildID) -> Self
fn from(source: InvalidTargetBuildID) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUploadID> for ApiResponseErrorKind
impl From<InvalidUploadID> for ApiResponseErrorKind
Source§fn from(source: InvalidUploadID) -> Self
fn from(source: InvalidUploadID) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUserID> for ApiResponseErrorKind
impl From<InvalidUserID> for ApiResponseErrorKind
Source§fn from(source: InvalidUserID) -> Self
fn from(source: InvalidUserID) -> Self
Converts to this type from the input type.
Source§impl From<NoUpgradePath> for ApiResponseErrorKind
impl From<NoUpgradePath> for ApiResponseErrorKind
Source§fn from(source: NoUpgradePath) -> Self
fn from(source: NoUpgradePath) -> Self
Converts to this type from the input type.
Source§impl From<TOTPTokenTimedOut> for ApiResponseErrorKind
impl From<TOTPTokenTimedOut> for ApiResponseErrorKind
Source§fn from(source: TOTPTokenTimedOut) -> Self
fn from(source: TOTPTokenTimedOut) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApiResponseErrorKind
impl RefUnwindSafe for ApiResponseErrorKind
impl Send for ApiResponseErrorKind
impl Sync for ApiResponseErrorKind
impl Unpin for ApiResponseErrorKind
impl UnwindSafe for ApiResponseErrorKind
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.