pub enum QueryRejection {
NotQuery,
MissingContentType,
UnsupportedMediaType,
}Expand description
The reason an incoming request is not a valid QUERY, with the HTTP status code a server should respond with (RFC 10008 §2).
Variants§
NotQuery
Not a QUERY request. Respond 405 Method Not Allowed with Allow.
MissingContentType
The Content-Type field is missing. Respond 400 Bad Request.
UnsupportedMediaType
The Content-Type is not in Accept-Query. Respond 415.
Implementations§
Trait Implementations§
Source§impl Clone for QueryRejection
impl Clone for QueryRejection
impl Copy for QueryRejection
Source§impl Debug for QueryRejection
impl Debug for QueryRejection
impl Eq for QueryRejection
Source§impl PartialEq for QueryRejection
impl PartialEq for QueryRejection
impl StructuralPartialEq for QueryRejection
Auto Trait Implementations§
impl Freeze for QueryRejection
impl RefUnwindSafe for QueryRejection
impl Send for QueryRejection
impl Sync for QueryRejection
impl Unpin for QueryRejection
impl UnsafeUnpin for QueryRejection
impl UnwindSafe for QueryRejection
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