pub enum RateLimitErrorCode {
CreditsRequired,
Unknown(String),
}Expand description
Error code carried on a rate limit event when a request was refused.
Variants§
CreditsRequired
The request requires purchasing usage credits.
Unknown(String)
An error code not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitErrorCode
impl Clone for RateLimitErrorCode
Source§fn clone(&self) -> RateLimitErrorCode
fn clone(&self) -> RateLimitErrorCode
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 RateLimitErrorCode
impl Debug for RateLimitErrorCode
Source§impl<'de> Deserialize<'de> for RateLimitErrorCode
impl<'de> Deserialize<'de> for RateLimitErrorCode
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RateLimitErrorCode
impl Display for RateLimitErrorCode
impl Eq for RateLimitErrorCode
Source§impl From<&str> for RateLimitErrorCode
impl From<&str> for RateLimitErrorCode
Source§impl Hash for RateLimitErrorCode
impl Hash for RateLimitErrorCode
Source§impl PartialEq for RateLimitErrorCode
impl PartialEq for RateLimitErrorCode
Source§impl Serialize for RateLimitErrorCode
impl Serialize for RateLimitErrorCode
impl StructuralPartialEq for RateLimitErrorCode
Auto Trait Implementations§
impl Freeze for RateLimitErrorCode
impl RefUnwindSafe for RateLimitErrorCode
impl Send for RateLimitErrorCode
impl Sync for RateLimitErrorCode
impl Unpin for RateLimitErrorCode
impl UnsafeUnpin for RateLimitErrorCode
impl UnwindSafe for RateLimitErrorCode
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