pub struct ComposedKeyset {
pub cursor_column: String,
pub cursor: Option<CursorValue>,
pub forward: bool,
}Expand description
A root level paged by keyset, as a Relay connection pages.
The rows past cursor on cursor_column, in order_by then cursor_column, forward
or backward, limit of them — RelayDatabaseAdapter::execute_relay_page’s page. A
backward page is read descending and returned in ascending cursor_column order, as
the relay page is, so a connection answers the same page whichever of the two reads it.
Fields§
§cursor_column: StringThe native column the page is keyed on (relay_cursor_column).
cursor: Option<CursorValue>The cursor the page starts past: after when forward, before when backward.
forward: booltrue for first/after, false for last/before.
Trait Implementations§
Source§impl Clone for ComposedKeyset
impl Clone for ComposedKeyset
Source§fn clone(&self) -> ComposedKeyset
fn clone(&self) -> ComposedKeyset
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 ComposedKeyset
impl Debug for ComposedKeyset
impl Eq for ComposedKeyset
Source§impl PartialEq for ComposedKeyset
impl PartialEq for ComposedKeyset
impl StructuralPartialEq for ComposedKeyset
Auto Trait Implementations§
impl Freeze for ComposedKeyset
impl RefUnwindSafe for ComposedKeyset
impl Send for ComposedKeyset
impl Sync for ComposedKeyset
impl Unpin for ComposedKeyset
impl UnsafeUnpin for ComposedKeyset
impl UnwindSafe for ComposedKeyset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.