pub enum HttpStatus {
Ok = 200,
BadRequest = 400,
Unauthorized = 401,
NotFound = 404,
InternalServerError = 500,
}Expand description
Minimal HTTP status codes used by WebhookResponse.
Only the codes that the webhook pipeline actually produces are listed here; this is not a general-purpose HTTP status enum.
Variants§
Ok = 200
200 OK
BadRequest = 400
400 Bad Request
401 Unauthorized
NotFound = 404
404 Not Found
InternalServerError = 500
500 Internal Server Error
Implementations§
Trait Implementations§
Source§impl Clone for HttpStatus
impl Clone for HttpStatus
Source§fn clone(&self) -> HttpStatus
fn clone(&self) -> HttpStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpStatus
impl Debug for HttpStatus
Source§impl PartialEq for HttpStatus
impl PartialEq for HttpStatus
impl Copy for HttpStatus
impl Eq for HttpStatus
impl StructuralPartialEq for HttpStatus
Auto Trait Implementations§
impl Freeze for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnsafeUnpin for HttpStatus
impl UnwindSafe for HttpStatus
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