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
Source§type SchemaType = __Schema
type SchemaType = __Schema
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
builderSource§impl TryFrom<IntrospectedSchema> for Schema
impl TryFrom<IntrospectedSchema> for Schema
Source§type Error = SchemaError
type Error = SchemaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for IntrospectedSchema
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