Trait Skippable

Source
pub trait Skippable<'arena>: WithDirectives<'arena> {
    // Provided method
    fn should_include(
        &'arena self,
        variables: Option<&Variables<'arena>>,
    ) -> bool { ... }
}
Expand description

Trait implemented by all AST nodes that can be skipped via standard skip/include directives.

Provided Methods§

Source

fn should_include(&'arena self, variables: Option<&Variables<'arena>>) -> bool

Resolves @include and @skip directives to a flag on whether an AST node must be skipped during execution.

Reference

Implementors§

Source§

impl<'arena> Skippable<'arena> for Selection<'arena>

Source§

impl<'arena> Skippable<'arena> for Field<'arena>

Source§

impl<'arena> Skippable<'arena> for FragmentSpread<'arena>

Source§

impl<'arena> Skippable<'arena> for InlineFragment<'arena>