Enum pact_models::HttpStatus [−][src]
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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more