Struct apollo_compiler::ast::ObjectTypeDefinition
source · pub struct ObjectTypeDefinition {
pub description: Option<NodeStr>,
pub name: Name,
pub implements_interfaces: Vec<Name>,
pub directives: DirectiveList,
pub fields: Vec<Node<FieldDefinition>>,
}
Fields§
§description: Option<NodeStr>
§name: Name
§implements_interfaces: Vec<Name>
§directives: DirectiveList
§fields: Vec<Node<FieldDefinition>>
Implementations§
Trait Implementations§
source§impl Clone for ObjectTypeDefinition
impl Clone for ObjectTypeDefinition
source§fn clone(&self) -> ObjectTypeDefinition
fn clone(&self) -> ObjectTypeDefinition
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 ObjectTypeDefinition
impl Debug for ObjectTypeDefinition
source§impl Display for ObjectTypeDefinition
impl Display for ObjectTypeDefinition
Serialize to GraphQL syntax with the default configuration
source§impl From<ObjectTypeDefinition> for Definition
impl From<ObjectTypeDefinition> for Definition
source§fn from(def: ObjectTypeDefinition) -> Self
fn from(def: ObjectTypeDefinition) -> Self
Converts to this type from the input type.
source§impl Hash for ObjectTypeDefinition
impl Hash for ObjectTypeDefinition
source§impl PartialEq for ObjectTypeDefinition
impl PartialEq for ObjectTypeDefinition
source§fn eq(&self, other: &ObjectTypeDefinition) -> bool
fn eq(&self, other: &ObjectTypeDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ObjectTypeDefinition
impl StructuralPartialEq for ObjectTypeDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ObjectTypeDefinition
impl Send for ObjectTypeDefinition
impl Sync for ObjectTypeDefinition
impl Unpin for ObjectTypeDefinition
impl UnwindSafe for ObjectTypeDefinition
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.