libgraphql_core/operation/fragment_registry.rs
1use crate::operation::Fragment;
2use std::collections::HashMap;
3
4#[derive(Clone, Debug, PartialEq)]
5pub struct FragmentRegistry<'schema> {
6 pub(super) fragments: HashMap<String, Fragment<'schema>>,
7}
8
9impl<'schema> FragmentRegistry<'schema> {
10 pub fn fragments(&self) -> &HashMap<String, Fragment<'schema>> {
11 &self.fragments
12 }
13}