Skip to main content

UnionType

Type Alias UnionType 

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

Aliased Type§

pub struct UnionType {
    pub position: Pos,
    pub description: Option<String>,
    pub name: String,
    pub directives: Vec<Directive<'static, String>>,
    pub types: Vec<String>,
}

Fields§

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

Implementations§

Source§

impl UnionType

Source

pub fn has_sub_type(&self, other_type_name: &str) -> bool

Trait Implementations§

Source§

impl Hash for UnionType

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