pub struct RootOperationTypeDefinition<'src> {
pub named_type: Name<'src>,
pub operation_kind: OperationKind,
pub span: ByteSpan,
pub syntax: Option<Box<RootOperationTypeDefinitionSyntax<'src>>>,
}Expand description
A root operation type definition within a schema
definition (e.g. query: Query).
See Root Operation Types in the spec.
Fields§
§named_type: Name<'src>§operation_kind: OperationKind§span: ByteSpan§syntax: Option<Box<RootOperationTypeDefinitionSyntax<'src>>>Implementations§
Source§impl RootOperationTypeDefinition<'_>
impl RootOperationTypeDefinition<'_>
Sourcepub fn append_source(&self, sink: &mut String, source: Option<&str>)
pub fn append_source(&self, sink: &mut String, source: Option<&str>)
Sourcepub fn byte_span(&self) -> ByteSpan
pub fn byte_span(&self) -> ByteSpan
Returns this root operation type definition’s byte-offset span within the source text.
The returned ByteSpan can be resolved to line/column
positions via source_span() or
ByteSpan::resolve().
Sourcepub fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
pub fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
Trait Implementations§
Source§impl AstNode for RootOperationTypeDefinition<'_>
impl AstNode for RootOperationTypeDefinition<'_>
Source§fn byte_span(&self) -> ByteSpan
fn byte_span(&self) -> ByteSpan
Returns this root operation type definition’s byte-offset span within the source text.
The returned ByteSpan can be resolved to line/column
positions via source_span() or
ByteSpan::resolve().
Source§fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
fn source_span(&self, source_map: &SourceMap<'_>) -> Option<SourceSpan>
Source§impl<'src> Clone for RootOperationTypeDefinition<'src>
impl<'src> Clone for RootOperationTypeDefinition<'src>
Source§fn clone(&self) -> RootOperationTypeDefinition<'src>
fn clone(&self) -> RootOperationTypeDefinition<'src>
Returns a duplicate 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<'src> Debug for RootOperationTypeDefinition<'src>
impl<'src> Debug for RootOperationTypeDefinition<'src>
Source§impl<'src> PartialEq for RootOperationTypeDefinition<'src>
impl<'src> PartialEq for RootOperationTypeDefinition<'src>
Source§fn eq(&self, other: &RootOperationTypeDefinition<'src>) -> bool
fn eq(&self, other: &RootOperationTypeDefinition<'src>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'src> StructuralPartialEq for RootOperationTypeDefinition<'src>
Auto Trait Implementations§
impl<'src> Freeze for RootOperationTypeDefinition<'src>
impl<'src> RefUnwindSafe for RootOperationTypeDefinition<'src>
impl<'src> Send for RootOperationTypeDefinition<'src>
impl<'src> Sync for RootOperationTypeDefinition<'src>
impl<'src> Unpin for RootOperationTypeDefinition<'src>
impl<'src> UnsafeUnpin for RootOperationTypeDefinition<'src>
impl<'src> UnwindSafe for RootOperationTypeDefinition<'src>
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