Struct apollo_compiler::schema::Implementers
source · pub struct Implementers {
pub objects: HashSet<Name>,
pub interfaces: HashSet<Name>,
}
Expand description
A collection of type names that implement an interface.
Concrete object types and derived interfaces can be accessed separately.
§Examples
use apollo_compiler::schema::Implementers;
// introspection must return only concrete implementers.
let possible_types = implementers.objects;
use apollo_compiler::schema::Implementers;
for name in implementers.iter() {
// iterates both concrete objects and interfaces
println!("{name}");
}
Fields§
§objects: HashSet<Name>
Names of the concrete types that implement an interface.
interfaces: HashSet<Name>
Names of the interfaces that implement an interface.
Implementations§
Trait Implementations§
source§impl Clone for Implementers
impl Clone for Implementers
source§fn clone(&self) -> Implementers
fn clone(&self) -> Implementers
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 Implementers
impl Debug for Implementers
source§impl Default for Implementers
impl Default for Implementers
source§fn default() -> Implementers
fn default() -> Implementers
Returns the “default value” for a type. Read more
source§impl PartialEq for Implementers
impl PartialEq for Implementers
source§fn eq(&self, other: &Implementers) -> bool
fn eq(&self, other: &Implementers) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Implementers
impl StructuralPartialEq for Implementers
Auto Trait Implementations§
impl Freeze for Implementers
impl RefUnwindSafe for Implementers
impl Send for Implementers
impl Sync for Implementers
impl Unpin for Implementers
impl UnwindSafe for Implementers
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.