pub struct SchemaExtension<'src> {
pub directives: Vec<DirectiveAnnotation<'src>>,
pub root_operations: Vec<RootOperationTypeDefinition<'src>>,
pub span: ByteSpan,
pub syntax: Option<Box<SchemaExtensionSyntax<'src>>>,
}Expand description
A schema extension.
See Schema Extension in the spec.
Fields§
§directives: Vec<DirectiveAnnotation<'src>>§root_operations: Vec<RootOperationTypeDefinition<'src>>§span: ByteSpan§syntax: Option<Box<SchemaExtensionSyntax<'src>>>Implementations§
Source§impl SchemaExtension<'_>
impl SchemaExtension<'_>
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 schema extension’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 SchemaExtension<'_>
impl AstNode for SchemaExtension<'_>
Source§fn byte_span(&self) -> ByteSpan
fn byte_span(&self) -> ByteSpan
Returns this schema extension’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 SchemaExtension<'src>
impl<'src> Clone for SchemaExtension<'src>
Source§fn clone(&self) -> SchemaExtension<'src>
fn clone(&self) -> SchemaExtension<'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 SchemaExtension<'src>
impl<'src> Debug for SchemaExtension<'src>
Source§impl<'src> PartialEq for SchemaExtension<'src>
impl<'src> PartialEq for SchemaExtension<'src>
impl<'src> StructuralPartialEq for SchemaExtension<'src>
Auto Trait Implementations§
impl<'src> Freeze for SchemaExtension<'src>
impl<'src> RefUnwindSafe for SchemaExtension<'src>
impl<'src> Send for SchemaExtension<'src>
impl<'src> Sync for SchemaExtension<'src>
impl<'src> Unpin for SchemaExtension<'src>
impl<'src> UnsafeUnpin for SchemaExtension<'src>
impl<'src> UnwindSafe for SchemaExtension<'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