#[non_exhaustive]pub enum SuccessResponse {
OK = 200,
Created = 201,
Accepted = 202,
NonAuthoritativeInformation = 203,
NoContent = 204,
ResetContent = 205,
PartialContent = 206,
MultiStatus = 207,
AlreadyReported = 208,
IMUsed = 226,
}Expand description
§Wikipedia:
A SuccessResponse (2xx) indicates that the action requested by the client was received, understood, and accepted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OK = 200
Created = 201
Accepted = 202
NonAuthoritativeInformation = 203
NoContent = 204
ResetContent = 205
PartialContent = 206
MultiStatus = 207
AlreadyReported = 208
IMUsed = 226
Trait Implementations§
Source§impl Clone for SuccessResponse
impl Clone for SuccessResponse
Source§fn clone(&self) -> SuccessResponse
fn clone(&self) -> SuccessResponse
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 SuccessResponse
impl Debug for SuccessResponse
Source§impl Default for SuccessResponse
impl Default for SuccessResponse
Source§fn default() -> SuccessResponse
fn default() -> SuccessResponse
Returns the “default value” for a type. Read more
Source§impl Display for SuccessResponse
impl Display for SuccessResponse
Source§impl From<SuccessResponse> for HttpStatus
impl From<SuccessResponse> for HttpStatus
Source§fn from(val: SuccessResponse) -> Self
fn from(val: SuccessResponse) -> Self
Converts to this type from the input type.
Source§impl Hash for SuccessResponse
impl Hash for SuccessResponse
Source§impl Ord for SuccessResponse
impl Ord for SuccessResponse
Source§fn cmp(&self, other: &SuccessResponse) -> Ordering
fn cmp(&self, other: &SuccessResponse) -> 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 for SuccessResponse
impl PartialEq for SuccessResponse
Source§impl PartialOrd for SuccessResponse
impl PartialOrd for SuccessResponse
impl Eq for SuccessResponse
impl StructuralPartialEq for SuccessResponse
Auto Trait Implementations§
impl Freeze for SuccessResponse
impl RefUnwindSafe for SuccessResponse
impl Send for SuccessResponse
impl Sync for SuccessResponse
impl Unpin for SuccessResponse
impl UnwindSafe for SuccessResponse
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