pub enum RequestMetadataError {
NotFound,
MethodNotAllowed,
UnsupportedMediaType,
NotAcceptable,
}Expand description
A failure while validating inbound HTTP request metadata.
Variants§
NotFound
The request URI does not exactly identify the selected standard route.
MethodNotAllowed
A known standard route was requested with a method other than POST.
UnsupportedMediaType
The request body does not use UTF-8 application/json or identity coding.
NotAcceptable
The request’s Accept metadata excludes application/json.
Implementations§
Trait Implementations§
Source§impl Debug for RequestMetadataError
impl Debug for RequestMetadataError
Source§impl Display for RequestMetadataError
impl Display for RequestMetadataError
Source§impl Error for RequestMetadataError
impl Error for RequestMetadataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RequestMetadataError
impl RefUnwindSafe for RequestMetadataError
impl Send for RequestMetadataError
impl Sync for RequestMetadataError
impl Unpin for RequestMetadataError
impl UnsafeUnpin for RequestMetadataError
impl UnwindSafe for RequestMetadataError
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