Enum pact_models::HttpStatus
source · pub enum HttpStatus {
Information,
Success,
Redirect,
ClientError,
ServerError,
StatusCodes(Vec<u16>),
NonError,
Error,
}
Expand description
Enum that defines the different types of HTTP statuses
Variants§
Information
Informational responses (100–199)
Success
Successful responses (200–299)
Redirect
Redirects (300–399)
ClientError
Client errors (400–499)
ServerError
Server errors (500–599)
StatusCodes(Vec<u16>)
Explicit status codes
NonError
Non-error response(< 400)
Error
Any error response (>= 400)
Implementations§
Trait Implementations§
source§impl Clone for HttpStatus
impl Clone for HttpStatus
source§fn clone(&self) -> HttpStatus
fn clone(&self) -> HttpStatus
Returns a copy 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<'de> Deserialize<'de> for HttpStatus
impl<'de> Deserialize<'de> for HttpStatus
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 HttpStatus
impl Display for HttpStatus
source§impl Ord for HttpStatus
impl Ord for HttpStatus
source§fn cmp(&self, other: &HttpStatus) -> Ordering
fn cmp(&self, other: &HttpStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<HttpStatus> for HttpStatus
impl PartialEq<HttpStatus> for HttpStatus
source§fn eq(&self, other: &HttpStatus) -> bool
fn eq(&self, other: &HttpStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<HttpStatus> for HttpStatus
impl PartialOrd<HttpStatus> for HttpStatus
source§fn partial_cmp(&self, other: &HttpStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &HttpStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for HttpStatus
impl Serialize for HttpStatus
impl Eq for HttpStatus
impl StructuralEq for HttpStatus
impl StructuralPartialEq for HttpStatus
Auto Trait Implementations§
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnwindSafe for HttpStatus
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.