pub struct CursorBuilder<P = (), S = Initial> { /* private fields */ }Implementations§
Source§impl CursorBuilder
impl CursorBuilder
pub fn new() -> CursorBuilder
pub fn build(self) -> CursorParams
Source§impl<P> CursorBuilder<P>
impl<P> CursorBuilder<P>
pub fn with_parent(parent: P) -> CursorBuilder<P>
pub fn first_page(self) -> CursorBuilder<P, FirstPage>
pub fn after(self, value: impl Into<FilterValue>) -> CursorBuilder<P, After>
pub fn before(self, value: impl Into<FilterValue>) -> CursorBuilder<P, Before>
pub fn next_cursor<T>(self, token: impl Into<String>) -> CursorBuilder<P, After>where
T: CursorSecureExtract,
pub fn prev_cursor<T>(
self,
token: impl Into<String>,
) -> CursorBuilder<P, Before>where
T: CursorSecureExtract,
Source§impl<P> CursorBuilder<P, FirstPage>
impl<P> CursorBuilder<P, FirstPage>
Source§impl<P> CursorBuilder<P, After>
impl<P> CursorBuilder<P, After>
Sourcepub fn and_field(self, value: impl Into<FilterValue>) -> CursorBuilder<P, After>
pub fn and_field(self, value: impl Into<FilterValue>) -> CursorBuilder<P, After>
Add more fields to create composite cursor
pub fn done(self) -> Pwhere
P: HasParams,
Source§impl<P> CursorBuilder<P, Before>
impl<P> CursorBuilder<P, Before>
Sourcepub fn and_field(
self,
value: impl Into<FilterValue>,
) -> CursorBuilder<P, Before>
pub fn and_field( self, value: impl Into<FilterValue>, ) -> CursorBuilder<P, Before>
Add more fields to create composite cursor
pub fn done(self) -> Pwhere
P: HasParams,
Trait Implementations§
Source§impl<S> Debug for CursorBuilder<(), S>
impl<S> Debug for CursorBuilder<(), S>
Source§impl Default for CursorBuilder
impl Default for CursorBuilder
Source§fn default() -> CursorBuilder
fn default() -> CursorBuilder
Returns the “default value” for a type. Read more
Source§impl IntoParams for CursorBuilder
impl IntoParams for CursorBuilder
fn into_params(self) -> Params
Source§impl IntoParams for CursorBuilder<(), After>
impl IntoParams for CursorBuilder<(), After>
fn into_params(self) -> Params
Source§impl IntoParams for CursorBuilder<(), Before>
impl IntoParams for CursorBuilder<(), Before>
fn into_params(self) -> Params
Source§impl IntoParams for CursorBuilder<(), FirstPage>
impl IntoParams for CursorBuilder<(), FirstPage>
fn into_params(self) -> Params
Auto Trait Implementations§
impl<P, S> Freeze for CursorBuilder<P, S>where
P: Freeze,
impl<P, S> RefUnwindSafe for CursorBuilder<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for CursorBuilder<P, S>
impl<P, S> Sync for CursorBuilder<P, S>
impl<P, S> Unpin for CursorBuilder<P, S>
impl<P, S> UnwindSafe for CursorBuilder<P, S>where
P: UnwindSafe,
S: UnwindSafe,
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