pub struct InlineFragment<'a> {
pub type_condition: Option<NamedType<'a>>,
pub directives: Directives<'a>,
pub selection_set: SelectionSet<'a>,
}
Expand description
AST Node for an inline Fragment definition with an additional SelectionSet
.
This may only be applied when the type condition matches or when no type condition is present.
Fields§
§type_condition: Option<NamedType<'a>>
A given type condition’s type name that must match before this fragment is applied on a GraphQL API. On inline fragments this is optional and no type condition has to be passed.
directives: Directives<'a>
Directives that are annotating this Inline Fragment.
When no Directives are present, this will be an empty
list, as can be checked using Directives::is_empty
.
See: Directives
selection_set: SelectionSet<'a>
A sub-Selection Set that is applied when this Fragment is applied to the parent Selection Set. See: SelectionSet
Trait Implementations§
Source§impl<'a> Clone for InlineFragment<'a>
impl<'a> Clone for InlineFragment<'a>
Source§fn clone(&self) -> InlineFragment<'a>
fn clone(&self) -> InlineFragment<'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 InlineFragment<'a>
impl<'a> Debug for InlineFragment<'a>
Source§impl<'a> From<InlineFragment<'a>> for Selection<'a>
impl<'a> From<InlineFragment<'a>> for Selection<'a>
Source§fn from(x: InlineFragment<'a>) -> Self
fn from(x: InlineFragment<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for InlineFragment<'a>
impl<'a> PartialEq for InlineFragment<'a>
Source§impl<'a> PrintNode for InlineFragment<'a>
impl<'a> PrintNode for InlineFragment<'a>
Source§impl<'arena> Skippable<'arena> for InlineFragment<'arena>
impl<'arena> Skippable<'arena> for InlineFragment<'arena>
Source§impl<'arena> WithDirectives<'arena> for InlineFragment<'arena>
impl<'arena> WithDirectives<'arena> for InlineFragment<'arena>
fn directives(&self) -> &Directives<'arena>
impl<'a> StructuralPartialEq for InlineFragment<'a>
Auto Trait Implementations§
impl<'a> Freeze for InlineFragment<'a>
impl<'a> !RefUnwindSafe for InlineFragment<'a>
impl<'a> !Send for InlineFragment<'a>
impl<'a> !Sync for InlineFragment<'a>
impl<'a> Unpin for InlineFragment<'a>
impl<'a> !UnwindSafe for InlineFragment<'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