bluejay_core/executable/fragment_definition.rs
1use crate::executable::SelectionSet;
2use crate::{Indexable, VariableDirectives};
3
4pub trait FragmentDefinition: Indexable {
5 type Directives: VariableDirectives;
6 type SelectionSet: SelectionSet;
7
8 fn name(&self) -> &str;
9 fn type_condition(&self) -> &str;
10 fn directives(&self) -> Option<&Self::Directives>;
11 fn selection_set(&self) -> &Self::SelectionSet;
12}