[][src]Trait craftql::extend_types::ExtendType

pub trait ExtendType {
    fn get_dependencies(&self) -> Vec<String>;
fn get_id_and_name(&self) -> (Option<String>, String);
fn get_mapped_type(&self) -> GraphQL;
fn get_raw(&self) -> String; }

Trait providing extension methods for graphql_parser::schema.

Required methods

fn get_dependencies(&self) -> Vec<String>

Method to get the dependencies.

fn get_id_and_name(&self) -> (Option<String>, String)

Method to get id and the name, id is optional and can be copied from name.

fn get_mapped_type(&self) -> GraphQL

Method to get the internal GraphQL mapped type.

fn get_raw(&self) -> String

Method to get the raw representation.

Loading content...

Implementations on Foreign Types

impl<'a, T> ExtendType for TypeDefinition<'a, T> where
    T: Text<'a>, 
[src]

impl<'a, T> ExtendType for TypeExtension<'a, T> where
    T: Text<'a>, 
[src]

impl<'a, T> ExtendType for SchemaDefinition<'a, T> where
    T: Text<'a>, 
[src]

impl<'a, T> ExtendType for DirectiveDefinition<'a, T> where
    T: Text<'a>, 
[src]

Loading content...

Implementors

Loading content...