#[non_exhaustive]pub enum ApiError {
General(GeneralApiError),
Ratelimited(RatelimitedApiError),
Message(MessageApiError),
}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.
General(GeneralApiError)
Ratelimited(RatelimitedApiError)
Request has been ratelimited.
Message(MessageApiError)
Something was wrong with the input when sending a message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiError
impl<'de> Deserialize<'de> for ApiError
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
impl Eq for ApiError
impl StructuralPartialEq for ApiError
Auto Trait Implementations§
impl Forget for ApiError
impl Freeze for ApiErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MessageApiErrorEmbedField>: Freeze,
impl Move for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiErrorwhere
RawVecInner: Send,
impl Sync for ApiErrorwhere
RawVecInner: Sync,
impl Unpin for ApiError
impl UnsafeUnpin for ApiErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MessageApiErrorEmbedField>: UnsafeUnpin,
impl UnwindSafe for ApiErrorwhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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.