pub enum APIErrorCode {
InvalidRequest,
InternalError,
Refused,
AccountChange,
Unknown(i64),
}
Variants§
InvalidRequest
InternalError
Refused
AccountChange
If this error happens we might need to re-authenticate.
Unknown(i64)
Trait Implementations§
Source§impl Clone for APIErrorCode
impl Clone for APIErrorCode
Source§fn clone(&self) -> APIErrorCode
fn clone(&self) -> APIErrorCode
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 APIErrorCode
impl Debug for APIErrorCode
Source§impl<'de> Deserialize<'de> for APIErrorCode
impl<'de> Deserialize<'de> for APIErrorCode
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 Display for APIErrorCode
impl Display for APIErrorCode
Source§impl Error for APIErrorCode
impl Error for APIErrorCode
1.30.0 · 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 Hash for APIErrorCode
impl Hash for APIErrorCode
Source§impl Ord for APIErrorCode
impl Ord for APIErrorCode
Source§fn cmp(&self, other: &APIErrorCode) -> Ordering
fn cmp(&self, other: &APIErrorCode) -> Ordering
1.21.0 · 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 APIErrorCode
impl PartialEq for APIErrorCode
Source§impl PartialOrd for APIErrorCode
impl PartialOrd for APIErrorCode
impl Copy for APIErrorCode
impl Eq for APIErrorCode
impl StructuralPartialEq for APIErrorCode
Auto Trait Implementations§
impl Freeze for APIErrorCode
impl RefUnwindSafe for APIErrorCode
impl Send for APIErrorCode
impl Sync for APIErrorCode
impl Unpin for APIErrorCode
impl UnwindSafe for APIErrorCode
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