pub struct IDCursor {
pub previous_cursor: i64,
pub next_cursor: i64,
pub ids: Vec<u64>,
}Expand description
Represents a single-page view into a list of IDs.
This type is intended to be used in the background by CursorIter to hold an intermediate
list of IDs to iterate over. See that struct’s documentation for details.
Fields§
§previous_cursor: i64Numeric reference to the previous page of results.
next_cursor: i64Numeric reference to the next page of results.
ids: Vec<u64>The list of user IDs in this page of results.
Trait Implementations§
Source§impl Cursor for IDCursor
impl Cursor for IDCursor
Source§fn previous_cursor_id(&self) -> i64
fn previous_cursor_id(&self) -> i64
Returns a numeric reference to the previous page of results.
Source§fn next_cursor_id(&self) -> i64
fn next_cursor_id(&self) -> i64
Returns a numeric reference to the next page of results.
Source§fn into_inner(self) -> Vec<Self::Item>
fn into_inner(self) -> Vec<Self::Item>
Unwraps the cursor, returning the collection of results from inside.
Source§impl<'de> Deserialize<'de> for IDCursor
impl<'de> Deserialize<'de> for IDCursor
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
Auto Trait Implementations§
impl Freeze for IDCursor
impl RefUnwindSafe for IDCursor
impl Send for IDCursor
impl Sync for IDCursor
impl Unpin for IDCursor
impl UnwindSafe for IDCursor
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