Struct apollo_compiler::database::hir::FieldDefinition   
source · pub struct FieldDefinition { /* private fields */ }Implementations§
source§impl FieldDefinition
 
impl FieldDefinition
sourcepub fn description(&self) -> Option<&str>
 
pub fn description(&self) -> Option<&str>
Get a reference to the field definition’s description.
sourcepub fn directives(&self) -> &[Directive]
 
pub fn directives(&self) -> &[Directive]
Get a reference to the field’s directives.
sourcepub fn directive_by_name(&self, name: &str) -> Option<&Directive>
 
pub fn directive_by_name(&self, name: &str) -> Option<&Directive>
Returns the first directive with the given name.
For repeatable directives, see directives_by_name (plural).
sourcepub fn directives_by_name<'def: 'name, 'name>(
    &'def self,
    name: &'name str
) -> impl Iterator<Item = &'def Directive> + 'name
 
pub fn directives_by_name<'def: 'name, 'name>( &'def self, name: &'name str ) -> impl Iterator<Item = &'def Directive> + 'name
Returns an iterator of directives with the given name.
For non-repeatable directives, directive_by_name (singular).
sourcepub fn loc(&self) -> Option<HirNodeLocation>
 
pub fn loc(&self) -> Option<HirNodeLocation>
Get the AST location information for this HIR node.
sourcepub fn arguments(&self) -> &ArgumentsDefinition
 
pub fn arguments(&self) -> &ArgumentsDefinition
Get a reference to field definition’s arguments
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 Hash for FieldDefinition
 
impl Hash for FieldDefinition
source§impl PartialEq<FieldDefinition> for FieldDefinition
 
impl PartialEq<FieldDefinition> 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
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.