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 description(&self) -> Option<&str>;
9 fn name(&self) -> &str;
10 fn type_condition(&self) -> &str;
11 fn directives(&self) -> Option<&Self::Directives>;
12 fn selection_set(&self) -> &Self::SelectionSet;
13}