Struct apollo_compiler::schema::InterfaceType
source · pub struct InterfaceType {
pub description: Option<NodeStr>,
pub implements_interfaces: IndexSet<ComponentStr>,
pub directives: Directives,
pub fields: IndexMap<Name, Component<FieldDefinition>>,
}
Fields§
§description: Option<NodeStr>
§implements_interfaces: IndexSet<ComponentStr>
- Key: name of an implemented interface
- Value: which interface type extension defined this implementation,
or
None
for the interface type definition.
directives: Directives
§fields: IndexMap<Name, Component<FieldDefinition>>
Explicit field definitions.
When looking up a definition,
consider using Schema::type_field
instead to include meta-fields.
Implementations§
source§impl InterfaceType
impl InterfaceType
sourcepub fn extensions(&self) -> IndexSet<&ExtensionId>
pub fn extensions(&self) -> IndexSet<&ExtensionId>
Collect interface type extensions that contribute any component
The order of the returned set is unspecified but deterministic for a given apollo-compiler version.
Trait Implementations§
source§impl Clone for InterfaceType
impl Clone for InterfaceType
source§fn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
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 moresource§impl Debug for InterfaceType
impl Debug for InterfaceType
source§impl From<InterfaceType> for ExtendedType
impl From<InterfaceType> for ExtendedType
source§fn from(ty: InterfaceType) -> Self
fn from(ty: InterfaceType) -> Self
Converts to this type from the input type.
source§impl PartialEq for InterfaceType
impl PartialEq for InterfaceType
source§fn eq(&self, other: &InterfaceType) -> bool
fn eq(&self, other: &InterfaceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InterfaceType
impl StructuralEq for InterfaceType
impl StructuralPartialEq for InterfaceType
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.