Struct graphgate_schema::MetaType[][src]

pub struct MetaType {
    pub description: Option<String>,
    pub name: Name,
    pub kind: TypeKind,
    pub owner: Option<String>,
    pub keys: HashMap<String, Vec<KeyFields>>,
    pub is_introspection: bool,
    pub implements: IndexSet<Name>,
    pub fields: IndexMap<Name, MetaField>,
    pub possible_types: IndexSet<Name>,
    pub enum_values: IndexMap<Name, MetaEnumValue>,
    pub input_fields: IndexMap<Name, MetaInputValue>,
}

Fields

description: Option<String>name: Namekind: TypeKindowner: Option<String>keys: HashMap<String, Vec<KeyFields>>is_introspection: boolimplements: IndexSet<Name>fields: IndexMap<Name, MetaField>possible_types: IndexSet<Name>enum_values: IndexMap<Name, MetaEnumValue>input_fields: IndexMap<Name, MetaInputValue>

Implementations

impl MetaType[src]

pub fn field_by_name(&self, name: &str) -> Option<&MetaField>[src]

pub fn is_composite(&self) -> bool[src]

pub fn is_abstract(&self) -> bool[src]

pub fn is_leaf(&self) -> bool[src]

pub fn is_input(&self) -> bool[src]

pub fn is_possible_type(&self, type_name: &str) -> bool[src]

pub fn type_overlap(&self, ty: &MetaType) -> bool[src]

Trait Implementations

impl Debug for MetaType[src]

impl Eq for MetaType[src]

impl PartialEq<MetaType> for MetaType[src]

impl StructuralEq for MetaType[src]

impl StructuralPartialEq for MetaType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.