Struct cynic_introspection::query::IntrospectedSchema
source · pub struct IntrospectedSchema {
pub query_type: NamedType,
pub mutation_type: Option<NamedType>,
pub subscription_type: Option<NamedType>,
pub types: Vec<Type>,
pub directives: Vec<Directive>,
}Expand description
The schema returned from a query
Fields§
§query_type: NamedTypeThe query root operation type
mutation_type: Option<NamedType>The mutation root operation type if any
subscription_type: Option<NamedType>The subscription root operation type if any
types: Vec<Type>All the types available in the schema
directives: Vec<Directive>All the directives available in the schema
Trait Implementations§
source§impl Debug for IntrospectedSchema
impl Debug for IntrospectedSchema
source§impl<'de> Deserialize<'de> for IntrospectedSchema
impl<'de> Deserialize<'de> for IntrospectedSchema
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 IntrospectedSchema
impl QueryFragment for IntrospectedSchema
§type SchemaType = __Schema
type SchemaType = __Schema
The type in a schema that this
QueryFragment represents§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
buildersource§impl TryFrom<IntrospectedSchema> for Schema
impl TryFrom<IntrospectedSchema> for Schema
§type Error = SchemaError
type Error = SchemaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for IntrospectedSchema
impl Send for IntrospectedSchema
impl Sync for IntrospectedSchema
impl Unpin for IntrospectedSchema
impl UnwindSafe for IntrospectedSchema
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