Pageable

Trait Pageable 

Source
pub trait Pageable<'a, K, T>{
    // Required method
    fn paginate(
        &self,
        storage: &'a dyn Storage,
        page_request: PageRequest<K>,
    ) -> PaginateResponse<K, T>
       where <K as KeyDeserialize>::Output: 'static;
}

Required Methods§

Source

fn paginate( &self, storage: &'a dyn Storage, page_request: PageRequest<K>, ) -> PaginateResponse<K, T>
where <K as KeyDeserialize>::Output: 'static,

Implementations on Foreign Types§

Source§

impl<'a, K, T> Pageable<'a, K, T> for Map<'a, K, T>
where T: Serialize + DeserializeOwned + 'a, K: PrimaryKey<'a> + KeyDeserialize<Output = K>,

Source§

fn paginate( &self, storage: &'a dyn Storage, page_request: PageRequest<K>, ) -> PaginateResponse<K, T>
where <K as KeyDeserialize>::Output: 'static,

Source§

impl<'a, K, T> Pageable<'a, K, T> for Prefix<K, T, K>
where T: Serialize + DeserializeOwned + 'a, K: PrimaryKey<'a> + KeyDeserialize<Output = K>,

Source§

fn paginate( &self, storage: &'a dyn Storage, page_request: PageRequest<K>, ) -> PaginateResponse<K, T>
where <K as KeyDeserialize>::Output: 'static,

Implementors§