SelectionSetResolver

Trait SelectionSetResolver 

Source
pub trait SelectionSetResolver: CollectFields {
    // Required method
    fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 SelectionSetContext<'life2>,
    ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

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 SelectionSetResolver for &str

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for bool

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for f32

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for f64

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for i8

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for i16

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for i32

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for i64

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for isize

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for str

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for u8

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for u16

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for u32

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for u64

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for usize

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl SelectionSetResolver for String

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

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

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

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

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

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

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl<T: SelectionSetResolver> SelectionSetResolver for Option<T>

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl<T: SelectionSetResolver> SelectionSetResolver for LinkedList<T>

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl<T: SelectionSetResolver> SelectionSetResolver for VecDeque<T>

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl<T: SelectionSetResolver> SelectionSetResolver for Vec<T>

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

impl<T: SelectionSetResolver> SelectionSetResolver for HashSet<T>

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

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

Source§

fn resolve_selection_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 SelectionSetContext<'life2>, ) -> Pin<Box<dyn Future<Output = ResolverResult<GqlValue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§