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
impl FieldByNameExtension for TypeDefinition
fn field_by_name(&self, name: &String) -> Option<&Field>
fn input_field_by_name(&self, name: &String) -> Option<&InputValue>
Source§impl ImplementingInterfaceExtension for TypeDefinition
impl ImplementingInterfaceExtension for TypeDefinition
fn interfaces(&self) -> Vec<String>
fn has_sub_type(&self, other_type: &TypeDefinition) -> bool
fn has_concrete_sub_type(&self, concrete_type: &ObjectType) -> bool
Source§impl PossibleTypesExtension for TypeDefinition
impl PossibleTypesExtension for TypeDefinition
fn possible_types<'a>(&self, schema: &'a Document) -> Vec<&'a ObjectType> ⓘ
Source§impl TypeDefinitionExtension for TypeDefinition
impl TypeDefinitionExtension for TypeDefinition
fn name(&self) -> &str
fn is_abstract_type(&self) -> bool
fn is_interface_type(&self) -> bool
fn is_leaf_type(&self) -> bool
fn is_input_type(&self) -> bool
fn is_composite_type(&self) -> bool
fn is_object_type(&self) -> bool
fn is_union_type(&self) -> bool
fn is_enum_type(&self) -> bool
fn is_scalar_type(&self) -> bool
Source§impl<'a, T> Clone for TypeDefinition<'a, T>
impl<'a, T> Clone for TypeDefinition<'a, T>
Source§fn clone(&self) -> TypeDefinition<'a, T>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more