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<'a, T> ObjectType<'a, T>
where T: Text<'a>,

Source

pub fn new(name: <T as Text<'a>>::Value) -> ObjectType<'a, T>

Trait Implementations§

Source§

impl ImplementingInterfaceExtension for ObjectType

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<'a, T> Clone for ObjectType<'a, T>
where T: Clone + Text<'a>, <T as Text<'a>>::Value: Clone,

Source§

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

Returns a copy 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 ObjectType<'a, T>
where T: Debug + Text<'a>, <T as Text<'a>>::Value: Debug,

Source§

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

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

impl<'a, T> Display for ObjectType<'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 ObjectType<'a, T>
where T: PartialEq + Text<'a>, <T as Text<'a>>::Value: PartialEq,

Source§

fn eq(&self, other: &ObjectType<'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 ObjectType<'a, T>
where T: Text<'a>,