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