pub enum WebhookError {
BadStatus(String),
NoContent,
Unknown(String),
BadParse(String),
TooBig(String, usize, usize),
}Expand description
Enum for handling the expected errors for processing webhook messages.
Variants§
BadStatus(String)
Non-200 status obtained from the API.
NoContent
204 Response received from the API.
Unknown(String)
Unknown error, details provided.
BadParse(String)
Unable to parse an object.
TooBig(String, usize, usize)
Content or Embed character count is too large.
Trait Implementations§
Source§impl Debug for WebhookError
impl Debug for WebhookError
Auto Trait Implementations§
impl Freeze for WebhookError
impl RefUnwindSafe for WebhookError
impl Send for WebhookError
impl Sync for WebhookError
impl Unpin for WebhookError
impl UnwindSafe for WebhookError
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