pub struct FragmentSpread<'a> {
pub name: NamedType<'a>,
pub directives: Directives<'a>,
}
Expand description
AST Node for a Fragment Spread, which refers to a FragmentDefinition
with an additional
SelectionSet
.
Fields§
§name: NamedType<'a>
A given name of the FragmentDefinition that must be spread in place of this Fragment Spread on a GraphQL API.
directives: Directives<'a>
Directives that are annotating this Fragment Spread.
When no Directives are present, this will be an empty
list, as can be checked using Directives::is_empty
.
See: Directives
Trait Implementations§
Source§impl<'a> Clone for FragmentSpread<'a>
impl<'a> Clone for FragmentSpread<'a>
Source§fn clone(&self) -> FragmentSpread<'a>
fn clone(&self) -> FragmentSpread<'a>
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<'a> Debug for FragmentSpread<'a>
impl<'a> Debug for FragmentSpread<'a>
Source§impl<'a> From<FragmentSpread<'a>> for Selection<'a>
impl<'a> From<FragmentSpread<'a>> for Selection<'a>
Source§fn from(x: FragmentSpread<'a>) -> Self
fn from(x: FragmentSpread<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for FragmentSpread<'a>
impl<'a> PartialEq for FragmentSpread<'a>
Source§impl<'a> PrintNode for FragmentSpread<'a>
impl<'a> PrintNode for FragmentSpread<'a>
Source§impl<'arena> Skippable<'arena> for FragmentSpread<'arena>
impl<'arena> Skippable<'arena> for FragmentSpread<'arena>
Source§impl<'arena> WithDirectives<'arena> for FragmentSpread<'arena>
impl<'arena> WithDirectives<'arena> for FragmentSpread<'arena>
fn directives(&self) -> &Directives<'arena>
impl<'a> StructuralPartialEq for FragmentSpread<'a>
Auto Trait Implementations§
impl<'a> Freeze for FragmentSpread<'a>
impl<'a> !RefUnwindSafe for FragmentSpread<'a>
impl<'a> !Send for FragmentSpread<'a>
impl<'a> !Sync for FragmentSpread<'a>
impl<'a> Unpin for FragmentSpread<'a>
impl<'a> !UnwindSafe for FragmentSpread<'a>
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