Struct async_graphql_warp::GraphQLBadRequest
source · pub struct GraphQLBadRequest(pub ParseRequestError);
Expand description
Bad request error.
It’s a wrapper of async_graphql::ParseRequestError
. It is also a Reply
-
by default it just returns a response containing the error message in plain
text.
Tuple Fields§
§0: ParseRequestError
Implementations§
source§impl GraphQLBadRequest
impl GraphQLBadRequest
sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Get the appropriate status code of the error.
Trait Implementations§
source§impl Debug for GraphQLBadRequest
impl Debug for GraphQLBadRequest
source§impl Display for GraphQLBadRequest
impl Display for GraphQLBadRequest
source§impl Error for GraphQLBadRequest
impl Error for GraphQLBadRequest
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<GraphQLBadRequest> for ParseRequestError
impl From<GraphQLBadRequest> for ParseRequestError
source§fn from(e: GraphQLBadRequest) -> Self
fn from(e: GraphQLBadRequest) -> Self
Converts to this type from the input type.
source§impl From<ParseRequestError> for GraphQLBadRequest
impl From<ParseRequestError> for GraphQLBadRequest
source§fn from(e: ParseRequestError) -> Self
fn from(e: ParseRequestError) -> Self
Converts to this type from the input type.
source§impl Reply for GraphQLBadRequest
impl Reply for GraphQLBadRequest
impl Reject for GraphQLBadRequest
Auto Trait Implementations§
impl Freeze for GraphQLBadRequest
impl !RefUnwindSafe for GraphQLBadRequest
impl Send for GraphQLBadRequest
impl Sync for GraphQLBadRequest
impl Unpin for GraphQLBadRequest
impl !UnwindSafe for GraphQLBadRequest
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