pub struct InputObjectTypeExtension<'src> {
pub directives: Vec<DirectiveAnnotation<'src>>,
pub fields: Vec<InputValueDefinition<'src>>,
pub name: Name<'src>,
pub span: ByteSpan,
pub syntax: Option<Box<InputObjectTypeExtensionSyntax<'src>>>,
}Expand description
An input object type extension.
See Input Object Extensions in the spec.
§Spec invariant
The spec’s directives-only form
(extend input Name Directives[Const]) requires at
least one directive when no fields are present.
For a spec-valid node, directives and fields
are never both empty.
Fields§
§directives: Vec<DirectiveAnnotation<'src>>§fields: Vec<InputValueDefinition<'src>>§name: Name<'src>§span: ByteSpan§syntax: Option<Box<InputObjectTypeExtensionSyntax<'src>>>Implementations§
Source§impl<'src> InputObjectTypeExtension<'src>
impl<'src> InputObjectTypeExtension<'src>
Sourcepub fn name_value(&self) -> &str
pub fn name_value(&self) -> &str
Returns the name of this input object type extension as a string slice.
Convenience accessor for self.name.value.
Source§impl InputObjectTypeExtension<'_>
impl InputObjectTypeExtension<'_>
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 input object type 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 InputObjectTypeExtension<'_>
impl AstNode for InputObjectTypeExtension<'_>
Source§fn byte_span(&self) -> ByteSpan
fn byte_span(&self) -> ByteSpan
Returns this input object type 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 InputObjectTypeExtension<'src>
impl<'src> Clone for InputObjectTypeExtension<'src>
Source§fn clone(&self) -> InputObjectTypeExtension<'src>
fn clone(&self) -> InputObjectTypeExtension<'src>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'src> Debug for InputObjectTypeExtension<'src>
impl<'src> Debug for InputObjectTypeExtension<'src>
Source§impl<'src> PartialEq for InputObjectTypeExtension<'src>
impl<'src> PartialEq for InputObjectTypeExtension<'src>
Source§fn eq(&self, other: &InputObjectTypeExtension<'src>) -> bool
fn eq(&self, other: &InputObjectTypeExtension<'src>) -> bool
self and other values to be equal, and is used by ==.