pub struct SchemaIntrospectionQuery(/* private fields */);
Expand description
A document with a single query that only has schema introspection fields.
Obtained from SchemaIntrospectionSplit::split
.
Implementations§
source§impl SchemaIntrospectionQuery
impl SchemaIntrospectionQuery
sourcepub fn split_and_execute(
schema: &Valid<Schema>,
document: &Valid<ExecutableDocument>,
operation: &Node<Operation>,
variable_values: &Valid<JsonMap>,
execute_non_introspection_parts: impl FnOnce(&Valid<ExecutableDocument>) -> Response
) -> Response
pub fn split_and_execute( schema: &Valid<Schema>, document: &Valid<ExecutableDocument>, operation: &Node<Operation>, variable_values: &Valid<JsonMap>, execute_non_introspection_parts: impl FnOnce(&Valid<ExecutableDocument>) -> Response ) -> Response
Execute the schema introspection parts of an operation and wrap a callback to execute the rest (if any).
sourcepub fn execute(
&self,
schema: &Valid<Schema>,
variable_values: &Valid<JsonMap>
) -> Result<Response, SuspectedValidationBug>
pub fn execute( &self, schema: &Valid<Schema>, variable_values: &Valid<JsonMap> ) -> Result<Response, SuspectedValidationBug>
Execute this query and return either a response with data or a request error
that can also be converted with into_response
.
Trait Implementations§
source§impl Deref for SchemaIntrospectionQuery
impl Deref for SchemaIntrospectionQuery
Auto Trait Implementations§
impl RefUnwindSafe for SchemaIntrospectionQuery
impl Send for SchemaIntrospectionQuery
impl Sync for SchemaIntrospectionQuery
impl Unpin for SchemaIntrospectionQuery
impl UnwindSafe for SchemaIntrospectionQuery
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