1
2
3
4
5
6
7
8
9
10
11
12
use crate::executable::SelectionSet;
use crate::VariableDirectives;

pub trait FragmentDefinition {
    type Directives: VariableDirectives;
    type SelectionSet: SelectionSet;

    fn name(&self) -> &str;
    fn type_condition(&self) -> &str;
    fn directives(&self) -> &Self::Directives;
    fn selection_set(&self) -> &Self::SelectionSet;
}