#[non_exhaustive]pub struct Schema {
pub query_type: String,
pub mutation_type: Option<String>,
pub subscription_type: Option<String>,
pub types: Vec<Type>,
pub directives: Vec<Directive>,
}Expand description
A GraphQL schema
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query_type: StringThe name of the query root operation type
mutation_type: Option<String>The name of the mutation root operation type
subscription_type: Option<String>The name of the subscription root operation type
types: Vec<Type>All the Types available in the schema
directives: Vec<Directive>All the Directives available in the schema
Implementations§
Trait Implementations§
Source§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.
impl Eq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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