Struct async_graphql_axum::GraphQLProtocol
source · [−]pub struct GraphQLProtocol(_);
Expand description
A GraphQL protocol extractor.
It extract GraphQL protocol from SEC_WEBSOCKET_PROTOCOL
header.
Trait Implementations
sourceimpl Clone for GraphQLProtocol
impl Clone for GraphQLProtocol
sourcefn clone(&self) -> GraphQLProtocol
fn clone(&self) -> GraphQLProtocol
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GraphQLProtocol
impl Debug for GraphQLProtocol
sourceimpl<B: Send> FromRequest<B> for GraphQLProtocol
impl<B: Send> FromRequest<B> 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. Read more
sourceimpl PartialEq<GraphQLProtocol> for GraphQLProtocol
impl PartialEq<GraphQLProtocol> for GraphQLProtocol
sourcefn eq(&self, other: &GraphQLProtocol) -> bool
fn eq(&self, other: &GraphQLProtocol) -> bool
impl Copy for GraphQLProtocol
impl Eq for GraphQLProtocol
impl StructuralEq for GraphQLProtocol
impl StructuralPartialEq for GraphQLProtocol
Auto Trait Implementations
impl RefUnwindSafe for GraphQLProtocol
impl Send for GraphQLProtocol
impl Sync for GraphQLProtocol
impl Unpin for GraphQLProtocol
impl UnwindSafe for GraphQLProtocol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.