Query

Trait Query 

Source
pub trait Query<C: Client>: MaybeSend + MaybeSync {
    type Output: MaybeSend + MaybeSync;

    // Required method
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        client: &'life1 C,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output, ApiClientError<C::Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Queries describe the way an endpoint is called. these are extensions to the behavior of specific endpoints.

Required Associated Types§

Required Methods§

Source

fn query<'life0, 'life1, 'async_trait>( &'life0 mut self, client: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<Self::Output, ApiClientError<C::Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<E, C> Query<C> for Ignore<E>
where E: QueryRaw<C>, C: Client,

Source§

impl<E, C, S> Query<C> for RetryQuery<E, S>
where E: Query<C>, C: Client, C::Error: RetryableError, S: RetryStrategy,

Source§

type Output = <E as Query<C>>::Output

Source§

impl<E, T, C> Query<C> for V3Paged<E, T>
where E: Query<C, Output = T> + Pageable, C: Client, C::Error: Error, T: Default + Message + Paged + 'static,

Source§

impl<Q, C> Query<C> for Q
where Q: Endpoint, C: Client, <Q as Endpoint>::Output: Default + Message + 'static,