pub struct IntrospectionQuery {
pub introspected_schema: Option<IntrospectedSchema>,
}Expand description
A GraphQL Introspection Query for Cynic.
By default this runs a query compatible with the June 2018 version of the GraphQL specification.
Fields§
§introspected_schema: Option<IntrospectedSchema>The schema returned from the query
Implementations§
Source§impl IntrospectionQuery
impl IntrospectionQuery
Sourcepub fn with_capabilities(capabilities: CapabilitySet) -> Operation<Self, ()>
pub fn with_capabilities(capabilities: CapabilitySet) -> Operation<Self, ()>
Builds an IntrospectionQuery for a server with the given capabilities
Source§impl IntrospectionQuery
impl IntrospectionQuery
Sourcepub fn into_schema(self) -> Result<Schema, SchemaError>
pub fn into_schema(self) -> Result<Schema, SchemaError>
Converts the results of an IntrospectionQuery into a Schema,
which has some stronger types than those offered by the introspection query
Trait Implementations§
Source§impl Debug for IntrospectionQuery
impl Debug for IntrospectionQuery
Source§impl<'de> Deserialize<'de> for IntrospectionQuery
impl<'de> Deserialize<'de> for IntrospectionQuery
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl QueryFragment for IntrospectionQuery
impl QueryFragment for IntrospectionQuery
Source§type SchemaType = Query
type SchemaType = Query
The type in a schema that this
QueryFragment representsSource§type VariablesFields = ()
type VariablesFields = ()
The variables that are required to execute this
QueryFragmentSource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)
Adds this fragment to the query being built by
builderAuto Trait Implementations§
impl Freeze for IntrospectionQuery
impl RefUnwindSafe for IntrospectionQuery
impl Send for IntrospectionQuery
impl Sync for IntrospectionQuery
impl Unpin for IntrospectionQuery
impl UnwindSafe for IntrospectionQuery
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