Struct apollo_parser::ast::SchemaDefinition
source · pub struct SchemaDefinition { /* private fields */ }
Implementations§
source§impl SchemaDefinition
impl SchemaDefinition
pub fn description(&self) -> Option<Description>
pub fn schema_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn directives(&self) -> Option<Directives>
pub fn l_curly_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
pub fn root_operation_type_definitions( &self ) -> AstChildren<RootOperationTypeDefinition> ⓘ
pub fn r_curly_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
Trait Implementations§
source§impl AstNode for SchemaDefinition
impl AstNode for SchemaDefinition
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 SchemaDefinition
impl Clone for SchemaDefinition
source§fn clone(&self) -> SchemaDefinition
fn clone(&self) -> SchemaDefinition
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 SchemaDefinition
impl Debug for SchemaDefinition
source§impl From<SchemaDefinition> for Definition
impl From<SchemaDefinition> for Definition
source§fn from(node: SchemaDefinition) -> Definition
fn from(node: SchemaDefinition) -> Definition
Converts to this type from the input type.
source§impl Hash for SchemaDefinition
impl Hash for SchemaDefinition
source§impl PartialEq<SchemaDefinition> for SchemaDefinition
impl PartialEq<SchemaDefinition> for SchemaDefinition
source§fn eq(&self, other: &SchemaDefinition) -> bool
fn eq(&self, other: &SchemaDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.