Struct apollo_parser::cst::FieldDefinition
source · pub struct FieldDefinition { /* private fields */ }
Implementations§
source§impl FieldDefinition
impl FieldDefinition
pub fn description(&self) -> Option<Description>
pub fn name(&self) -> Option<Name>
pub fn arguments_definition(&self) -> Option<ArgumentsDefinition>
pub fn colon_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn ty(&self) -> Option<Type>
pub fn directives(&self) -> Option<Directives>
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 CstNode for FieldDefinition
impl CstNode for FieldDefinition
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
source§impl Debug for FieldDefinition
impl Debug for FieldDefinition
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 StructuralPartialEq for FieldDefinition
Auto Trait Implementations§
impl Freeze for FieldDefinition
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