CollectFields

Trait CollectFields 

Source
pub trait CollectFields: FieldResolver {
    // Provided methods
    fn introspection_type_name(&self) -> String { ... }
    fn collect_all_fields<'a, 'ctx: 'a>(
        &'a self,
        ctx: &SelectionSetContext<'ctx>,
        fields: &mut Fields<'a>,
    ) -> ResolverResult<()> { ... }
}

Provided Methods§

Source

fn introspection_type_name(&self) -> String

Source

fn collect_all_fields<'a, 'ctx: 'a>( &'a self, ctx: &SelectionSetContext<'ctx>, fields: &mut Fields<'a>, ) -> ResolverResult<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CollectFields for &str

Source§

impl CollectFields for bool

Source§

impl CollectFields for f32

Source§

impl CollectFields for f64

Source§

impl CollectFields for i8

Source§

impl CollectFields for i16

Source§

impl CollectFields for i32

Source§

impl CollectFields for i64

Source§

impl CollectFields for isize

Source§

impl CollectFields for str

Source§

impl CollectFields for u8

Source§

impl CollectFields for u16

Source§

impl CollectFields for u32

Source§

impl CollectFields for u64

Source§

impl CollectFields for usize

Source§

impl CollectFields for String

Source§

impl<'a, T: FieldResolver + 'a> CollectFields for &'a [T]

Source§

impl<K, V> CollectFields for BTreeMap<K, V>
where K: ToString + Eq + Send + Sync, V: Serialize + Send + Sync,

Source§

impl<K, V> CollectFields for HashMap<K, V>
where K: ToString + Eq + Send + Sync, V: Serialize + Send + Sync,

Source§

impl<T: FieldResolver> CollectFields for Option<T>

Source§

impl<T: FieldResolver> CollectFields for &T

Source§

impl<T: FieldResolver> CollectFields for Box<T>

Source§

impl<T: FieldResolver> CollectFields for LinkedList<T>

Source§

impl<T: FieldResolver> CollectFields for VecDeque<T>

Source§

impl<T: FieldResolver> CollectFields for Arc<T>

Source§

impl<T: FieldResolver> CollectFields for Vec<T>

Source§

impl<T: FieldResolver> CollectFields for HashSet<T>

Source§

impl<T: FieldResolver, const N: usize> CollectFields for [T; N]

Implementors§