Struct async_graphql_axum::GraphQLProtocol
source · pub struct GraphQLProtocol(/* private fields */);
Expand description
A GraphQL protocol extractor.
It extract GraphQL protocol from SEC_WEBSOCKET_PROTOCOL
header.
Trait Implementations§
source§impl Clone for GraphQLProtocol
impl Clone for GraphQLProtocol
source§fn clone(&self) -> GraphQLProtocol
fn clone(&self) -> GraphQLProtocol
Returns a copy 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 GraphQLProtocol
impl Debug for GraphQLProtocol
source§impl<S> FromRequestParts<S> for GraphQLProtocol
impl<S> FromRequestParts<S> for GraphQLProtocol
§type Rejection = StatusCode
type Rejection = StatusCode
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
source§impl PartialEq for GraphQLProtocol
impl PartialEq for GraphQLProtocol
source§fn eq(&self, other: &GraphQLProtocol) -> bool
fn eq(&self, other: &GraphQLProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GraphQLProtocol
impl Eq for GraphQLProtocol
impl StructuralPartialEq for GraphQLProtocol
Auto Trait Implementations§
impl Freeze for GraphQLProtocol
impl RefUnwindSafe for GraphQLProtocol
impl Send for GraphQLProtocol
impl Sync for GraphQLProtocol
impl Unpin for GraphQLProtocol
impl UnwindSafe for GraphQLProtocol
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<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.source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.