Struct apollo_parser::cst::InputValueDefinition
source · pub struct InputValueDefinition { /* private fields */ }
Implementations§
source§impl InputValueDefinition
impl InputValueDefinition
pub fn description(&self) -> Option<Description>
pub fn name(&self) -> Option<Name>
pub fn colon_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn ty(&self) -> Option<Type>
pub fn default_value(&self) -> Option<DefaultValue>
pub fn directives(&self) -> Option<Directives>
Trait Implementations§
source§impl Clone for InputValueDefinition
impl Clone for InputValueDefinition
source§fn clone(&self) -> InputValueDefinition
fn clone(&self) -> InputValueDefinition
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 InputValueDefinition
impl CstNode for InputValueDefinition
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 InputValueDefinition
impl Debug for InputValueDefinition
source§impl Hash for InputValueDefinition
impl Hash for InputValueDefinition
source§impl PartialEq for InputValueDefinition
impl PartialEq for InputValueDefinition
source§fn eq(&self, other: &InputValueDefinition) -> bool
fn eq(&self, other: &InputValueDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InputValueDefinition
impl StructuralPartialEq for InputValueDefinition
Auto Trait Implementations§
impl Freeze for InputValueDefinition
impl !RefUnwindSafe for InputValueDefinition
impl !Send for InputValueDefinition
impl !Sync for InputValueDefinition
impl Unpin for InputValueDefinition
impl !UnwindSafe for InputValueDefinition
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