Struct speedrun_api::api::SinglePageBuilder
source · [−]pub struct SinglePageBuilder<'a, E> { /* private fields */ }Expand description
Builder for the SinglePage endpoint
Implementations
sourceimpl<'a, E> SinglePageBuilder<'a, E>where
E: Pageable + Endpoint,
impl<'a, E> SinglePageBuilder<'a, E>where
E: Pageable + Endpoint,
sourcepub fn new(paged: &'a E) -> Self
pub fn new(paged: &'a E) -> Self
Create a new SinglePageBuilder.
sourcepub fn offset<T>(self, value: T) -> Selfwhere
T: Into<Option<usize>>,
pub fn offset<T>(self, value: T) -> Selfwhere
T: Into<Option<usize>>,
Request set of elements beginning at offset
sourcepub fn page_size<T>(self, value: T) -> Selfwhere
T: Into<Option<usize>>,
pub fn page_size<T>(self, value: T) -> Selfwhere
T: Into<Option<usize>>,
Number of elements per request. Valid values are between 1 and 200.
sourcepub fn build(self) -> SinglePage<'a, E>where
E: Pageable,
pub fn build(self) -> SinglePage<'a, E>where
E: Pageable,
Returns a SinglePage that can be querired for a set of elements.
Trait Implementations
Auto Trait Implementations
impl<'a, E> RefUnwindSafe for SinglePageBuilder<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for SinglePageBuilder<'a, E>where
E: Sync,
impl<'a, E> Sync for SinglePageBuilder<'a, E>where
E: Sync,
impl<'a, E> Unpin for SinglePageBuilder<'a, E>
impl<'a, E> UnwindSafe for SinglePageBuilder<'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