Struct speedrun_api::api::SinglePage
source · [−]pub struct SinglePage<'a, E> { /* private fields */ }Expand description
Represents a single page of elements.
Implementations
sourceimpl<'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
sourceimpl<'a, T, C, E> AsyncQuery<(Vec<T, Global>, Pagination), C> for SinglePage<'a, E>where
T: DeserializeOwned + Send + 'static,
C: AsyncClient + Sync,
E: Endpoint + Pageable + Sync,
impl<'a, T, C, E> AsyncQuery<(Vec<T, Global>, Pagination), C> for SinglePage<'a, E>where
T: DeserializeOwned + Send + 'static,
C: AsyncClient + Sync,
E: Endpoint + Pageable + Sync,
sourcefn 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Perform an asynchronous query against the client.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more