pub struct GraphQLSchema {
pub types: Vec<GraphQLType>,
pub queries: Vec<GraphQLField>,
pub mutations: Vec<GraphQLField>,
}Fields§
§types: Vec<GraphQLType>§queries: Vec<GraphQLField>§mutations: Vec<GraphQLField>Implementations§
Source§impl GraphQLSchema
impl GraphQLSchema
pub fn new() -> Self
pub fn add_type(self, t: GraphQLType) -> Self
pub fn add_query(self, f: GraphQLField) -> Self
pub fn add_mutation(self, f: GraphQLField) -> Self
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 Default for GraphQLSchema
impl Default 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