pub struct GraphQLSchema {
pub types: HashMap<String, GraphQLType>,
pub queries: Vec<GraphQLField>,
pub mutations: Vec<GraphQLField>,
pub subscriptions: Vec<GraphQLField>,
pub directives: Vec<GraphQLDirective>,
pub description: Option<String>,
}Expand description
Parsed GraphQL schema representation
Fields§
§types: HashMap<String, GraphQLType>Map of type names to their definitions
queries: Vec<GraphQLField>Query root type fields
mutations: Vec<GraphQLField>Mutation root type fields (if mutations are supported)
subscriptions: Vec<GraphQLField>Subscription root type fields (if subscriptions are supported)
directives: Vec<GraphQLDirective>Custom directives defined in the schema
description: Option<String>Schema description
Trait Implementations§
Source§impl Clone for GraphQLSchema
impl Clone for GraphQLSchema
Source§fn clone(&self) -> GraphQLSchema
fn clone(&self) -> GraphQLSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphQLSchema
impl Debug for GraphQLSchema
Source§impl<'de> Deserialize<'de> for GraphQLSchema
impl<'de> Deserialize<'de> for GraphQLSchema
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
Auto Trait Implementations§
impl Freeze for GraphQLSchema
impl RefUnwindSafe for GraphQLSchema
impl Send for GraphQLSchema
impl Sync for GraphQLSchema
impl Unpin for GraphQLSchema
impl UnsafeUnpin for GraphQLSchema
impl UnwindSafe for GraphQLSchema
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