pub struct GraphqlSchema { /* private fields */ }Expand description
Auto-generated GraphQL SDL schema from registered EntitySchemas.
Call GraphqlSchema::add_entity for each entity type, then
GraphqlSchema::sdl to retrieve the schema definition language string
suitable for serving at /__graphql/schema.graphql.
Implementations§
Source§impl GraphqlSchema
impl GraphqlSchema
Sourcepub fn add_entity(&mut self, schema: EntitySchema)
pub fn add_entity(&mut self, schema: EntitySchema)
Register an entity schema.
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 · 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§fn default() -> GraphqlSchema
fn default() -> GraphqlSchema
Returns the “default value” for a type. 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