Skip to main content

InterfaceType

Type Alias InterfaceType 

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

Aliased Type§

pub struct InterfaceType {
    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 InterfaceType

Source

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

Source

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

Source§

impl InterfaceType

Source

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

Trait Implementations§

Source§

impl Hash for InterfaceType

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