pub struct HttpStatusCode(/* private fields */);
Expand description
§OpenAPI v3.1
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md
Status codes SHOULD be selected from the available status codes registered in the IANA Status Code Registry.
§OpenAPI v3.0
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#http-status-codes
Status codes SHOULD be selected from the available status codes registered in the IANA Status Code Registry.
§IANA HTTP Status Codes
https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
The status code of a response is a three-digit integer code
Implementations§
Trait Implementations§
Source§impl AsRef<str> for HttpStatusCode
impl AsRef<str> for HttpStatusCode
Source§impl Clone for HttpStatusCode
impl Clone for HttpStatusCode
Source§fn clone(&self) -> HttpStatusCode
fn clone(&self) -> HttpStatusCode
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 HttpStatusCode
impl Debug for HttpStatusCode
Source§impl From<HttpStatusCode> for String
impl From<HttpStatusCode> for String
Source§fn from(code: HttpStatusCode) -> Self
fn from(code: HttpStatusCode) -> Self
Converts to this type from the input type.
Source§impl Hash for HttpStatusCode
impl Hash for HttpStatusCode
Source§impl PartialEq for HttpStatusCode
impl PartialEq for HttpStatusCode
impl Eq for HttpStatusCode
impl StructuralPartialEq for HttpStatusCode
Auto Trait Implementations§
impl Freeze for HttpStatusCode
impl RefUnwindSafe for HttpStatusCode
impl Send for HttpStatusCode
impl Sync for HttpStatusCode
impl Unpin for HttpStatusCode
impl UnwindSafe for HttpStatusCode
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
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.