pub struct UserCursor {
pub previous_cursor: i64,
pub next_cursor: i64,
pub users: Vec<TwitterUser>,
}Expand description
Represents a single-page view into a list of users.
This type is intended to be used in the background by CursorIter to hold an intermediate
list of users 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.
users: Vec<TwitterUser>The list of users in this page of results.
Trait Implementations§
Source§impl Cursor for UserCursor
impl Cursor for UserCursor
Source§type Item = TwitterUser
type Item = TwitterUser
What type is being returned by the API call?
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 UserCursor
impl<'de> Deserialize<'de> for UserCursor
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 UserCursor
impl RefUnwindSafe for UserCursor
impl Send for UserCursor
impl Sync for UserCursor
impl Unpin for UserCursor
impl UnwindSafe for UserCursor
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