pub trait PagedEndpointExt<'a, E> {
// Required methods
fn iter<T, C>(&'a self, client: &'a C) -> PagedIter<'a, E, C, T> ⓘ
where C: Client,
T: DeserializeOwned;
fn single_page(&'a self) -> SinglePageBuilder<'a, E>;
fn stream<T, C>(
&'a self,
client: &'a C,
) -> BoxStream<'a, Result<T, ApiError<C::Error>>>
where T: DeserializeOwned + Send + 'static,
C: AsyncClient + Sync,
E: Sync + Send;
}
Expand description
Adapters specific to Pageable
endpoints.
Required Methods§
Sourcefn iter<T, C>(&'a self, client: &'a C) -> PagedIter<'a, E, C, T> ⓘwhere
C: Client,
T: DeserializeOwned,
fn iter<T, C>(&'a self, client: &'a C) -> PagedIter<'a, E, C, T> ⓘwhere
C: Client,
T: DeserializeOwned,
Create an Iterator over the results of the paginated endpoint.
Sourcefn single_page(&'a self) -> SinglePageBuilder<'a, E>
fn single_page(&'a self) -> SinglePageBuilder<'a, E>
Retrieves a single page of results for the paginated endpoint.
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.