Struct apollo_compiler::ast::UnionTypeDefinition
source · pub struct UnionTypeDefinition {
pub description: Option<NodeStr>,
pub name: Name,
pub directives: Directives,
pub members: Vec<NamedType>,
}
Fields§
§description: Option<NodeStr>
§name: Name
§directives: Directives
§members: Vec<NamedType>
Implementations§
Trait Implementations§
source§impl Clone for UnionTypeDefinition
impl Clone for UnionTypeDefinition
source§fn clone(&self) -> UnionTypeDefinition
fn clone(&self) -> UnionTypeDefinition
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 UnionTypeDefinition
impl Debug for UnionTypeDefinition
source§impl Display for UnionTypeDefinition
impl Display for UnionTypeDefinition
Serialize to GraphQL syntax with the default configuration
source§impl Hash for UnionTypeDefinition
impl Hash for UnionTypeDefinition
source§impl PartialEq for UnionTypeDefinition
impl PartialEq for UnionTypeDefinition
source§fn eq(&self, other: &UnionTypeDefinition) -> bool
fn eq(&self, other: &UnionTypeDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnionTypeDefinition
impl StructuralEq for UnionTypeDefinition
impl StructuralPartialEq for UnionTypeDefinition
Auto Trait Implementations§
impl RefUnwindSafe for UnionTypeDefinition
impl Send for UnionTypeDefinition
impl Sync for UnionTypeDefinition
impl Unpin for UnionTypeDefinition
impl UnwindSafe for UnionTypeDefinition
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.