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