#[non_exhaustive]pub enum RateLimitType {
Monthly,
Burst,
Unknown,
Other(String),
}Expand description
Which limit a 429 hit. unknown when the server did not say and the detail text did not tell.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Monthly
monthly
Burst
burst
Unknown
unknown
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for RateLimitType
impl AsRef<str> for RateLimitType
Source§impl Clone for RateLimitType
impl Clone for RateLimitType
Source§impl Debug for RateLimitType
impl Debug for RateLimitType
Source§impl<'de> Deserialize<'de> for RateLimitType
impl<'de> Deserialize<'de> for RateLimitType
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 RateLimitType
impl Display for RateLimitType
impl Eq for RateLimitType
Source§impl From<&String> for RateLimitType
impl From<&String> for RateLimitType
Source§impl From<&str> for RateLimitType
impl From<&str> for RateLimitType
Source§impl From<RateLimitType> for String
impl From<RateLimitType> for String
Source§fn from(value: RateLimitType) -> Self
fn from(value: RateLimitType) -> Self
Converts to this type from the input type.
Source§impl From<String> for RateLimitType
impl From<String> for RateLimitType
Source§impl Hash for RateLimitType
impl Hash for RateLimitType
Source§impl PartialEq for RateLimitType
impl PartialEq for RateLimitType
Source§impl PartialEq<&str> for RateLimitType
impl PartialEq<&str> for RateLimitType
Source§impl PartialEq<RateLimitType> for &str
impl PartialEq<RateLimitType> for &str
Source§impl PartialEq<str> for RateLimitType
impl PartialEq<str> for RateLimitType
Auto Trait Implementations§
impl Forget for RateLimitType
impl Freeze for RateLimitType
impl Move for RateLimitType
impl RefUnwindSafe for RateLimitType
impl Send for RateLimitTypewhere
RawVecInner: Send,
impl Sync for RateLimitTypewhere
RawVecInner: Sync,
impl Unpin for RateLimitType
impl UnsafeUnpin for RateLimitType
impl UnwindSafe for RateLimitTypewhere
RawVecInner: UnwindSafe,
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