pub struct ErrorCode(/* private fields */);
Expand description
An API Error
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const ERATELIMIT: Self
pub const ERATELIMIT: Self
Ratelimited
Sourcepub const EINCOMPLETE: Self
pub const EINCOMPLETE: Self
Tried to access an incomplete resource
Sourcepub const EOVERQUOTA: Self
pub const EOVERQUOTA: Self
Request over quota
Sourcepub const ETEMPUNAVAIL: Self
pub const ETEMPUNAVAIL: Self
Resource temporarily unavailable
Sourcepub const ETOOMANYCONNECTIONS: Self
pub const ETOOMANYCONNECTIONS: Self
Too many connections to this resource
Sourcepub const EGOINGOVERQUOTA: Self
pub const EGOINGOVERQUOTA: Self
Not enough quota
Sourcepub const EMFAREQUIRED: Self
pub const EMFAREQUIRED: Self
Need multifactor authentication
Sourcepub const EMASTERONLY: Self
pub const EMASTERONLY: Self
Access denied for sub-users (buisness accounts only)
Sourcepub const EBUSINESSPASTDUE: Self
pub const EBUSINESSPASTDUE: Self
Business account expired
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Get a human-friendly description if the error
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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 Error for ErrorCode
impl Error for ErrorCode
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()
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.