Struct apollo_compiler::schema::UnionType
source · pub struct UnionType {
pub description: Option<NodeStr>,
pub directives: Directives,
pub members: IndexSet<ComponentStr>,
}
Fields§
§description: Option<NodeStr>
§directives: Directives
§members: IndexSet<ComponentStr>
- Key: name of a member object type
- Value: which union type extension defined this implementation,
or
None
for the union type definition.
Implementations§
source§impl UnionType
impl UnionType
sourcepub fn extensions(&self) -> IndexSet<&ExtensionId>
pub fn extensions(&self) -> IndexSet<&ExtensionId>
Collect union 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 From<UnionType> for ExtendedType
impl From<UnionType> for ExtendedType
source§impl PartialEq for UnionType
impl PartialEq for UnionType
impl Eq for UnionType
impl StructuralEq for UnionType
impl StructuralPartialEq for UnionType
Auto Trait Implementations§
impl RefUnwindSafe for UnionType
impl Send for UnionType
impl Sync for UnionType
impl Unpin for UnionType
impl UnwindSafe for UnionType
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.