Enum tusk_rs::reqres::ResponseStatusCode
source · pub enum ResponseStatusCode {
Show 41 variants
Ok,
Created,
Accepted,
NonAuthoritativeInformation,
NoContent,
ResetContent,
PartialContent,
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
NotModified,
TemporaryRedirect,
PermanentRedirect,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
PreconditionFailed,
PayloadTooLarge,
UriTooLong,
UnsupportedMediaType,
RangeNotSatisfiable,
ExpectationFailed,
ImATeapot,
TooEarly,
PreconditionRequired,
TooManyRequests,
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
HttpVersionNotSupported,
}
Expand description
Struct which strongly types HTTP status code names to their corresponding codes.
Variants§
Ok
Created
Accepted
NonAuthoritativeInformation
NoContent
ResetContent
PartialContent
MultipleChoices
MovedPermanently
Found
SeeOther
NotModified
TemporaryRedirect
PermanentRedirect
BadRequest
PaymentRequired
Forbidden
NotFound
MethodNotAllowed
NotAcceptable
RequestTimeout
Conflict
Gone
LengthRequired
PreconditionFailed
PayloadTooLarge
UriTooLong
UnsupportedMediaType
RangeNotSatisfiable
ExpectationFailed
ImATeapot
TooEarly
PreconditionRequired
TooManyRequests
InternalServerError
NotImplemented
BadGateway
GatewayTimeout
HttpVersionNotSupported
Implementations§
Trait Implementations§
source§impl Clone for ResponseStatusCode
impl Clone for ResponseStatusCode
source§fn clone(&self) -> ResponseStatusCode
fn clone(&self) -> ResponseStatusCode
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 moreAuto Trait Implementations§
impl Freeze for ResponseStatusCode
impl RefUnwindSafe for ResponseStatusCode
impl Send for ResponseStatusCode
impl Sync for ResponseStatusCode
impl Unpin for ResponseStatusCode
impl UnwindSafe for ResponseStatusCode
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