Trait PaginatedResourceAsync

Source
pub trait PaginatedResourceAsync {
    type Item: Send;

    // Required method
    fn _get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        page: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Item>, HttpError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Item>, HttpError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Associated Types§

Required Methods§

Source

fn _get<'life0, 'life1, 'async_trait>( &'life0 self, page: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Item>, HttpError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Item>, HttpError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§