Skip to main content

CursorBuilder

Struct CursorBuilder 

Source
pub struct CursorBuilder<P = (), S = Initial> { /* private fields */ }

Implementations§

Source§

impl CursorBuilder

Source

pub fn new() -> CursorBuilder

Source

pub fn build(self) -> CursorParams

Source§

impl<P> CursorBuilder<P>

Source

pub fn with_parent(parent: P) -> CursorBuilder<P>

Source

pub fn first_page(self) -> CursorBuilder<P, FirstPage>

Source

pub fn after(self, value: impl Into<FilterValue>) -> CursorBuilder<P, After>

Source

pub fn before(self, value: impl Into<FilterValue>) -> CursorBuilder<P, Before>

Source

pub fn next_cursor<T>(self, token: impl Into<String>) -> CursorBuilder<P, After>

Source

pub fn prev_cursor<T>( self, token: impl Into<String>, ) -> CursorBuilder<P, Before>

Source§

impl<P> CursorBuilder<P, FirstPage>

Source

pub fn done(self) -> P
where P: HasParams,

Source§

impl<P> CursorBuilder<P, After>

Source

pub fn and_field(self, value: impl Into<FilterValue>) -> CursorBuilder<P, After>

Add more fields to create composite cursor

Source

pub fn done(self) -> P
where P: HasParams,

Source§

impl<P> CursorBuilder<P, Before>

Source

pub fn and_field( self, value: impl Into<FilterValue>, ) -> CursorBuilder<P, Before>

Add more fields to create composite cursor

Source

pub fn done(self) -> P
where P: HasParams,

Trait Implementations§

Source§

impl<S> Debug for CursorBuilder<(), S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for CursorBuilder

Source§

fn default() -> CursorBuilder

Returns the “default value” for a type. Read more
Source§

impl IntoParams for CursorBuilder

Source§

impl IntoParams for CursorBuilder<(), After>

Source§

impl IntoParams for CursorBuilder<(), Before>

Source§

impl IntoParams for CursorBuilder<(), FirstPage>

Auto Trait Implementations§

§

impl<P, S> Freeze for CursorBuilder<P, S>
where P: Freeze,

§

impl<P, S> RefUnwindSafe for CursorBuilder<P, S>

§

impl<P, S> Send for CursorBuilder<P, S>
where P: Send, S: Send,

§

impl<P, S> Sync for CursorBuilder<P, S>
where P: Sync, S: Sync,

§

impl<P, S> Unpin for CursorBuilder<P, S>
where P: Unpin, S: Unpin,

§

impl<P, S> UnwindSafe for CursorBuilder<P, S>
where P: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.