Struct async_graphql_rocket::GraphQLQuery
source · pub struct GraphQLQuery { /* private fields */ }
Expand description
Implementations§
source§impl GraphQLQuery
impl GraphQLQuery
sourcepub async fn execute<E>(self, executor: &E) -> GraphQLResponsewhere
E: Executor,
pub async fn execute<E>(self, executor: &E) -> GraphQLResponsewhere E: Executor,
Shortcut method to execute the request on the schema.
Trait Implementations§
source§impl Debug for GraphQLQuery
impl Debug for GraphQLQuery
source§impl From<GraphQLQuery> for GraphQLRequest
impl From<GraphQLQuery> for GraphQLRequest
source§fn from(query: GraphQLQuery) -> Self
fn from(query: GraphQLQuery) -> Self
Converts to this type from the input type.
source§impl<'r> FromForm<'r> for GraphQLQuery
impl<'r> FromForm<'r> for GraphQLQuery
source§fn init(__opts: Options) -> Self::Context
fn init(__opts: Options) -> Self::Context
Initializes and returns the parsing context for
Self
.source§fn push_value(__c: &mut Self::Context, __f: ValueField<'r>)
fn push_value(__c: &mut Self::Context, __f: ValueField<'r>)
Processes the value field
field
.source§fn push_data<'life0, 'life1, 'async_trait>(
__c: &'life0 mut FromFormGeneratedContext<'r>,
__f: DataField<'r, 'life1>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'r: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn push_data<'life0, 'life1, 'async_trait>( __c: &'life0 mut FromFormGeneratedContext<'r>, __f: DataField<'r, 'life1> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where 'r: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Processes the data field
field
.source§fn finalize(__c: Self::Context) -> Result<Self, Errors<'r>>
fn finalize(__c: Self::Context) -> Result<Self, Errors<'r>>
Finalizes parsing. Returns the parsed value when successful or
collection of
Errors
otherwise.Auto Trait Implementations§
impl RefUnwindSafe for GraphQLQuery
impl Send for GraphQLQuery
impl Sync for GraphQLQuery
impl Unpin for GraphQLQuery
impl UnwindSafe for GraphQLQuery
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.