pub trait Query<C, T = ()>: Debugwhere
    C: Client,{
    // Required method
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<T, C::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

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

Implementors§

source§

impl<E, C> Query<C, ()> for Ignore<Optional<E>>where E: Debug + Endpoint + Send + Sync, C: Client + Debug + Sync,

source§

impl<E, C> Query<C, ()> for Ignore<E>where E: Debug + Endpoint + Send + Sync, C: Client + Debug + Sync,

source§

impl<E, C> Query<C, ()> for Optional<Ignore<E>>where E: Debug + Endpoint + Send + Sync, C: Client + Debug + Sync,

source§

impl<E, C> Query<C, Response<Vec<u8, Global>>> for Raw<E>where E: Debug + Endpoint + Send + Sync, C: Client + Debug + Sync,

source§

impl<E, C, T> Query<C, Option<T>> for Optional<E>where E: Debug + Endpoint + Send + Sync, C: Client + Debug + Sync, T: Debug + DeserializeOwned, E::Response<T>: DeserializeOwned + UnwrapResponse<T>,

source§

impl<E, C, T> Query<C, T> for Ewhere E: Debug + Endpoint + Send + Sync, C: Client + Debug + Sync, T: Debug + DeserializeOwned, E::Response<T>: DeserializeOwned + UnwrapResponse<T>,

source§

impl<E, T, C> Query<C, Vec<T, Global>> for Paged<E>where E: Debug + Endpoint + Pageable + Send + Sync, T: Debug + DeserializeOwned + Send, C: Client + Debug + Sync, E::Response<Vec<T>>: DeserializeOwned + UnwrapResponse<Vec<T>>,