Enum apollo_parser::ast::Selection
source · pub enum Selection {
Field(Field),
FragmentSpread(FragmentSpread),
InlineFragment(InlineFragment),
}
Variants§
Trait Implementations§
source§impl AstNode for Selection
impl AstNode for Selection
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 From<FragmentSpread> for Selection
impl From<FragmentSpread> for Selection
source§fn from(node: FragmentSpread) -> Selection
fn from(node: FragmentSpread) -> Selection
Converts to this type from the input type.
source§impl From<InlineFragment> for Selection
impl From<InlineFragment> for Selection
source§fn from(node: InlineFragment) -> Selection
fn from(node: InlineFragment) -> Selection
Converts to this type from the input type.