pub enum HttpStatus {
Ok = 200,
BadRequest = 400,
Forbidden = 403,
NotFound = 404,
Conflict = 409,
TooManyRequests = 429,
InternalServerError = 500,
ServiceUnavailable = 503,
}Expand description
HTTP status code mapping (independent of any web framework).
Variants§
Ok = 200
200 OK
BadRequest = 400
400 Bad Request
Forbidden = 403
403 Forbidden
NotFound = 404
404 Not Found
Conflict = 409
409 Conflict
TooManyRequests = 429
429 Too Many Requests
InternalServerError = 500
500 Internal Server Error
503 Service Unavailable
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpStatus
Source§impl Debug for HttpStatus
impl Debug for HttpStatus
impl Eq for HttpStatus
Source§impl From<HttpStatus> for u16
impl From<HttpStatus> for u16
Source§fn from(status: HttpStatus) -> u16
fn from(status: HttpStatus) -> u16
Converts to this type from the input type.
Source§impl PartialEq for HttpStatus
impl PartialEq for HttpStatus
Source§fn eq(&self, other: &HttpStatus) -> bool
fn eq(&self, other: &HttpStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.