TypeDefinition

Type Alias TypeDefinition 

Source
pub type TypeDefinition = TypeDefinition<'static, String>;

Aliased Type§

pub enum TypeDefinition {
    Scalar(ScalarType<'static, String>),
    Object(ObjectType<'static, String>),
    Interface(InterfaceType<'static, String>),
    Union(UnionType<'static, String>),
    Enum(EnumType<'static, String>),
    InputObject(InputObjectType<'static, String>),
}

Variants§

§

Scalar(ScalarType<'static, String>)

§

Object(ObjectType<'static, String>)

§

Interface(InterfaceType<'static, String>)

§

Union(UnionType<'static, String>)

§

Enum(EnumType<'static, String>)

§

InputObject(InputObjectType<'static, String>)

Trait Implementations§

Source§

impl FieldByNameExtension for TypeDefinition

Source§

impl ImplementingInterfaceExtension for TypeDefinition

Source§

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

Source§

fn has_sub_type(&self, other_type: &TypeDefinition) -> bool

Source§

fn has_concrete_sub_type(&self, concrete_type: &ObjectType) -> bool

Source§

impl PossibleTypesExtension for TypeDefinition

Source§

fn possible_types<'a>(&self, schema: &'a Document) -> Vec<&'a ObjectType>

Source§

impl TypeDefinitionExtension for TypeDefinition

Source§

impl<'a, T> Clone for TypeDefinition<'a, T>
where T: Clone + Text<'a>,

Source§

fn clone(&self) -> TypeDefinition<'a, T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, T> Debug for TypeDefinition<'a, T>
where T: Debug + Text<'a>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a, T> Display for TypeDefinition<'a, T>
where T: Text<'a>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'a, T> PartialEq for TypeDefinition<'a, T>
where T: PartialEq + Text<'a>,

Source§

fn eq(&self, other: &TypeDefinition<'a, T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, T> StructuralPartialEq for TypeDefinition<'a, T>
where T: Text<'a>,