Struct apollo_parser::cst::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 ) -> CstChildren<RootOperationTypeDefinition> ⓘ
pub fn r_curly_token(&self) -> Option<SyntaxToken<GraphQLLanguage>>
Trait Implementations§
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 CstNode for SchemaDefinition
impl CstNode 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 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 for SchemaDefinition
impl PartialEq 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 ==
.impl Eq for SchemaDefinition
impl StructuralPartialEq for SchemaDefinition
Auto Trait Implementations§
impl Freeze for SchemaDefinition
impl !RefUnwindSafe for SchemaDefinition
impl !Send for SchemaDefinition
impl !Sync for SchemaDefinition
impl Unpin for SchemaDefinition
impl !UnwindSafe for SchemaDefinition
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