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>,
impl<'a, T> ObjectType<'a, T>where
T: Text<'a>,
pub fn new(name: <T as Text<'a>>::Value) -> ObjectType<'a, T>
Trait Implementations§
Source§impl ImplementingInterfaceExtension for ObjectType
impl ImplementingInterfaceExtension for ObjectType
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<'a, T> Clone for ObjectType<'a, T>
impl<'a, T> Clone for ObjectType<'a, T>
Source§fn clone(&self) -> ObjectType<'a, T>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more