Struct apollo_parser::ast::DirectiveDefinition
source · pub struct DirectiveDefinition { /* private fields */ }
Implementations§
source§impl DirectiveDefinition
impl DirectiveDefinition
pub fn description(&self) -> Option<Description>
pub fn directive_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn at_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn name(&self) -> Option<Name>
pub fn arguments_definition(&self) -> Option<ArgumentsDefinition>
pub fn repeatable_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn on_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn directive_locations(&self) -> Option<DirectiveLocations>
Trait Implementations§
source§impl AstNode for DirectiveDefinition
impl AstNode for DirectiveDefinition
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 Clone for DirectiveDefinition
impl Clone for DirectiveDefinition
source§fn clone(&self) -> DirectiveDefinition
fn clone(&self) -> DirectiveDefinition
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 DirectiveDefinition
impl Debug for DirectiveDefinition
source§impl From<DirectiveDefinition> for Definition
impl From<DirectiveDefinition> for Definition
source§fn from(node: DirectiveDefinition) -> Definition
fn from(node: DirectiveDefinition) -> Definition
Converts to this type from the input type.