pub struct InterfaceType<'a, T: Text<'a>> {
pub position: Pos,
pub description: Option<String>,
pub name: T::Value,
pub implements_interfaces: Vec<T::Value>,
pub directives: Vec<Directive<'a, T>>,
pub fields: Vec<Field<'a, T>>,
}Fields§
§position: Pos§description: Option<String>§name: T::Value§implements_interfaces: Vec<T::Value>§directives: Vec<Directive<'a, T>>§fields: Vec<Field<'a, T>>Implementations§
Source§impl InterfaceType<'static, String>
impl InterfaceType<'static, String>
pub fn has_sub_type(&self, other_type: &TypeDefinition) -> bool
pub fn has_concrete_sub_type(&self, concrete_type: &TypeDefinition) -> bool
Source§impl InterfaceType<'static, String>
impl InterfaceType<'static, String>
pub fn is_implemented_by(&self, other_type: &TypeDefinition) -> bool
Trait Implementations§
Source§impl<'a, T> Display for InterfaceType<'a, T>where
T: Text<'a>,
impl<'a, T> Display for InterfaceType<'a, T>where
T: Text<'a>,
impl<'a, T: PartialEq + Text<'a>> StructuralPartialEq for InterfaceType<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for InterfaceType<'a, T>
impl<'a, T> RefUnwindSafe for InterfaceType<'a, T>where
<T as Text<'a>>::Value: RefUnwindSafe,
Vec<<T as Text<'a>>::Value>: RefUnwindSafe,
Vec<Directive<'a, T>>: RefUnwindSafe,
Vec<Field<'a, T>>: RefUnwindSafe,
impl<'a, T> Send for InterfaceType<'a, T>
impl<'a, T> Sync for InterfaceType<'a, T>
impl<'a, T> Unpin for InterfaceType<'a, T>
impl<'a, T> UnsafeUnpin for InterfaceType<'a, T>where
<T as Text<'a>>::Value: UnsafeUnpin,
Vec<<T as Text<'a>>::Value>: UnsafeUnpin,
Vec<Directive<'a, T>>: UnsafeUnpin,
Vec<Field<'a, T>>: UnsafeUnpin,
impl<'a, T> UnwindSafe for InterfaceType<'a, T>where
<T as Text<'a>>::Value: UnwindSafe,
Vec<<T as Text<'a>>::Value>: UnwindSafe,
Vec<Directive<'a, T>>: UnwindSafe,
Vec<Field<'a, T>>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more