pub struct KeysetPagination {
pub cursor: Option<KeysetCursor>,
pub limit: usize,
}Fields§
§cursor: Option<KeysetCursor>§limit: usizeImplementations§
Source§impl KeysetPagination
impl KeysetPagination
pub fn new(limit: usize) -> Self
pub fn with_cursor(self, cursor: KeysetCursor) -> Self
Trait Implementations§
Source§impl Clone for KeysetPagination
impl Clone for KeysetPagination
Source§fn clone(&self) -> KeysetPagination
fn clone(&self) -> KeysetPagination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeysetPagination
impl Debug for KeysetPagination
Source§impl<'de> Deserialize<'de> for KeysetPagination
impl<'de> Deserialize<'de> for KeysetPagination
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeysetPagination
impl PartialEq for KeysetPagination
Source§fn eq(&self, other: &KeysetPagination) -> bool
fn eq(&self, other: &KeysetPagination) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeysetPagination
impl Serialize for KeysetPagination
impl StructuralPartialEq for KeysetPagination
Auto Trait Implementations§
impl Freeze for KeysetPagination
impl RefUnwindSafe for KeysetPagination
impl Send for KeysetPagination
impl Sync for KeysetPagination
impl Unpin for KeysetPagination
impl UnsafeUnpin for KeysetPagination
impl UnwindSafe for KeysetPagination
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