pub struct GQLSchemaExtended {
pub objects: Vec<GQLObject>,
pub interfaces: Vec<GQLInterface>,
pub unions: Vec<GQLUnion>,
pub enums: Vec<GQLEnumDef>,
pub scalars: Vec<GQLScalar>,
pub input_objects: Vec<GQLInputObject>,
pub directives: Vec<GQLDirective>,
pub query_type: Option<String>,
pub mutation_type: Option<String>,
pub subscription_type: Option<String>,
}Fields§
§objects: Vec<GQLObject>§interfaces: Vec<GQLInterface>§unions: Vec<GQLUnion>§enums: Vec<GQLEnumDef>§scalars: Vec<GQLScalar>§input_objects: Vec<GQLInputObject>§directives: Vec<GQLDirective>§query_type: Option<String>§mutation_type: Option<String>§subscription_type: Option<String>Implementations§
Source§impl GQLSchemaExtended
impl GQLSchemaExtended
pub fn new() -> Self
pub fn add_object(&mut self, obj: GQLObject)
pub fn add_interface(&mut self, iface: GQLInterface)
pub fn add_scalar(&mut self, scalar: GQLScalar)
pub fn set_query_type(&mut self, name: impl Into<String>)
pub fn emit(&self) -> String
Trait Implementations§
Source§impl Clone for GQLSchemaExtended
impl Clone for GQLSchemaExtended
Source§fn clone(&self) -> GQLSchemaExtended
fn clone(&self) -> GQLSchemaExtended
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 GQLSchemaExtended
impl Debug for GQLSchemaExtended
Source§impl Default for GQLSchemaExtended
impl Default for GQLSchemaExtended
Source§fn default() -> GQLSchemaExtended
fn default() -> GQLSchemaExtended
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GQLSchemaExtended
impl RefUnwindSafe for GQLSchemaExtended
impl Send for GQLSchemaExtended
impl Sync for GQLSchemaExtended
impl Unpin for GQLSchemaExtended
impl UnsafeUnpin for GQLSchemaExtended
impl UnwindSafe for GQLSchemaExtended
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