Skip to main content

ObjectType

Type Alias ObjectType 

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

Aliased Type§

pub struct ObjectType {
    pub position: Pos,
    pub description: Option<String>,
    pub name: String,
    pub implements_interfaces: Vec<String>,
    pub directives: Vec<Directive<'static, String>>,
    pub fields: Vec<Field<'static, String>>,
}

Fields§

§position: Pos§description: Option<String>§name: String§implements_interfaces: Vec<String>§directives: Vec<Directive<'static, String>>§fields: Vec<Field<'static, String>>

Implementations§

Source§

impl ObjectType

Source

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

Source

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

Trait Implementations§

Source§

impl Hash for ObjectType

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more