Enum apollo_parser::cst::Definition
source · pub enum Definition {
Show 17 variants
OperationDefinition(OperationDefinition),
FragmentDefinition(FragmentDefinition),
DirectiveDefinition(DirectiveDefinition),
SchemaDefinition(SchemaDefinition),
ScalarTypeDefinition(ScalarTypeDefinition),
ObjectTypeDefinition(ObjectTypeDefinition),
InterfaceTypeDefinition(InterfaceTypeDefinition),
UnionTypeDefinition(UnionTypeDefinition),
EnumTypeDefinition(EnumTypeDefinition),
InputObjectTypeDefinition(InputObjectTypeDefinition),
SchemaExtension(SchemaExtension),
ScalarTypeExtension(ScalarTypeExtension),
ObjectTypeExtension(ObjectTypeExtension),
InterfaceTypeExtension(InterfaceTypeExtension),
UnionTypeExtension(UnionTypeExtension),
EnumTypeExtension(EnumTypeExtension),
InputObjectTypeExtension(InputObjectTypeExtension),
}
Variants§
OperationDefinition(OperationDefinition)
FragmentDefinition(FragmentDefinition)
DirectiveDefinition(DirectiveDefinition)
SchemaDefinition(SchemaDefinition)
ScalarTypeDefinition(ScalarTypeDefinition)
ObjectTypeDefinition(ObjectTypeDefinition)
InterfaceTypeDefinition(InterfaceTypeDefinition)
UnionTypeDefinition(UnionTypeDefinition)
EnumTypeDefinition(EnumTypeDefinition)
InputObjectTypeDefinition(InputObjectTypeDefinition)
SchemaExtension(SchemaExtension)
ScalarTypeExtension(ScalarTypeExtension)
ObjectTypeExtension(ObjectTypeExtension)
InterfaceTypeExtension(InterfaceTypeExtension)
UnionTypeExtension(UnionTypeExtension)
EnumTypeExtension(EnumTypeExtension)
InputObjectTypeExtension(InputObjectTypeExtension)
Implementations§
source§impl Definition
impl Definition
Trait Implementations§
source§impl Clone for Definition
impl Clone for Definition
source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
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 Definition
impl CstNode for Definition
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 Definition
impl Debug for Definition
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.
source§impl From<EnumTypeDefinition> for Definition
impl From<EnumTypeDefinition> for Definition
source§fn from(node: EnumTypeDefinition) -> Definition
fn from(node: EnumTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl From<EnumTypeExtension> for Definition
impl From<EnumTypeExtension> for Definition
source§fn from(node: EnumTypeExtension) -> Definition
fn from(node: EnumTypeExtension) -> Definition
Converts to this type from the input type.
source§impl From<FragmentDefinition> for Definition
impl From<FragmentDefinition> for Definition
source§fn from(node: FragmentDefinition) -> Definition
fn from(node: FragmentDefinition) -> Definition
Converts to this type from the input type.
source§impl From<InputObjectTypeDefinition> for Definition
impl From<InputObjectTypeDefinition> for Definition
source§fn from(node: InputObjectTypeDefinition) -> Definition
fn from(node: InputObjectTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl From<InputObjectTypeExtension> for Definition
impl From<InputObjectTypeExtension> for Definition
source§fn from(node: InputObjectTypeExtension) -> Definition
fn from(node: InputObjectTypeExtension) -> Definition
Converts to this type from the input type.
source§impl From<InterfaceTypeDefinition> for Definition
impl From<InterfaceTypeDefinition> for Definition
source§fn from(node: InterfaceTypeDefinition) -> Definition
fn from(node: InterfaceTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl From<InterfaceTypeExtension> for Definition
impl From<InterfaceTypeExtension> for Definition
source§fn from(node: InterfaceTypeExtension) -> Definition
fn from(node: InterfaceTypeExtension) -> Definition
Converts to this type from the input type.
source§impl From<ObjectTypeDefinition> for Definition
impl From<ObjectTypeDefinition> for Definition
source§fn from(node: ObjectTypeDefinition) -> Definition
fn from(node: ObjectTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl From<ObjectTypeExtension> for Definition
impl From<ObjectTypeExtension> for Definition
source§fn from(node: ObjectTypeExtension) -> Definition
fn from(node: ObjectTypeExtension) -> Definition
Converts to this type from the input type.
source§impl From<OperationDefinition> for Definition
impl From<OperationDefinition> for Definition
source§fn from(node: OperationDefinition) -> Definition
fn from(node: OperationDefinition) -> Definition
Converts to this type from the input type.
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.
source§impl From<ScalarTypeExtension> for Definition
impl From<ScalarTypeExtension> for Definition
source§fn from(node: ScalarTypeExtension) -> Definition
fn from(node: ScalarTypeExtension) -> Definition
Converts to this type from the input type.
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 From<SchemaExtension> for Definition
impl From<SchemaExtension> for Definition
source§fn from(node: SchemaExtension) -> Definition
fn from(node: SchemaExtension) -> Definition
Converts to this type from the input type.
source§impl From<UnionTypeDefinition> for Definition
impl From<UnionTypeDefinition> for Definition
source§fn from(node: UnionTypeDefinition) -> Definition
fn from(node: UnionTypeDefinition) -> Definition
Converts to this type from the input type.
source§impl From<UnionTypeExtension> for Definition
impl From<UnionTypeExtension> for Definition
source§fn from(node: UnionTypeExtension) -> Definition
fn from(node: UnionTypeExtension) -> Definition
Converts to this type from the input type.
source§impl Hash for Definition
impl Hash for Definition
source§impl PartialEq for Definition
impl PartialEq for Definition
source§fn eq(&self, other: &Definition) -> bool
fn eq(&self, other: &Definition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl !RefUnwindSafe for Definition
impl !Send for Definition
impl !Sync for Definition
impl Unpin for Definition
impl !UnwindSafe for Definition
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