pub struct SinglePage<'a, E> { /* private fields */ }
Expand description
Represents a single page of elements.
Implementations§
Source§impl<'a, E> SinglePage<'a, E>where
E: Endpoint + Pageable,
impl<'a, E> SinglePage<'a, E>where
E: Endpoint + Pageable,
Sourcepub fn builder(paged: &'a E) -> SinglePageBuilder<'a, E>
pub fn builder(paged: &'a E) -> SinglePageBuilder<'a, E>
Create a builder for a SinglePage
Trait Implementations§
Source§impl<'a, T, C, E> AsyncQuery<(Vec<T>, Pagination), C> for SinglePage<'a, E>
impl<'a, T, C, E> AsyncQuery<(Vec<T>, Pagination), C> for SinglePage<'a, E>
Source§fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<(Vec<T>, Pagination), ApiError<C::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<(Vec<T>, Pagination), ApiError<C::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Perform an asynchronous query against the client.
Source§impl<'a, E: Debug> Debug for SinglePage<'a, E>
impl<'a, E: Debug> Debug for SinglePage<'a, E>
Source§impl<'a, E, T, C> Query<(Vec<T>, Pagination), C> for SinglePage<'a, E>
impl<'a, E, T, C> Query<(Vec<T>, Pagination), C> for SinglePage<'a, E>
Auto Trait Implementations§
impl<'a, E> Freeze for SinglePage<'a, E>
impl<'a, E> RefUnwindSafe for SinglePage<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for SinglePage<'a, E>where
E: Sync,
impl<'a, E> Sync for SinglePage<'a, E>where
E: Sync,
impl<'a, E> Unpin for SinglePage<'a, E>
impl<'a, E> UnwindSafe for SinglePage<'a, E>where
E: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more