Struct kuon::FollowersIds [−][src]
pub struct FollowersIds<'a> { /* fields omitted */ }
Example
let api = kuon::TwitterAPI::new_using_env().await?; let res = api.followers_ids().screen_name("rustlang").count(100).send().await?;
GET followers/ids
Returns a cursored collection of user IDs for every user following the specified user. At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 5,000 user IDs and multiple “pages” of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. This method is especially powerful when used in conjunction with GET users / lookup, a method that allows you to convert user IDs into full user objects in bulk.
Resource Information
Q. | A. |
---|---|
Response formats | JSON |
Requires authentication? | Yes |
Rate limited? | Yes |
Requests / 15-min window (user auth) | 15 |
Requests / 15-min window (app auth) | 15 |
https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
Implementations
impl<'a> FollowersIds<'a>
[src]
impl<'a> FollowersIds<'a>
[src]pub fn user_id(&mut self, user_id: u64) -> &mut Self
[src]
pub fn user_id(&mut self, user_id: u64) -> &mut Self
[src]The ID of the user for whom to return results.
pub fn screen_name(&mut self, screen_name: impl Into<String>) -> &mut Self
[src]
pub fn screen_name(&mut self, screen_name: impl Into<String>) -> &mut Self
[src]The screen name of the user for whom to return results.
pub fn cursor(&mut self, cursor: i64) -> &mut Self
[src]
pub fn cursor(&mut self, cursor: i64) -> &mut Self
[src]Causes the list of connections to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned is not guaranteed to be 5000 as suspended users are filtered out after connections are queried. If no cursor is provided, a value of -1 will be assumed, which is the first “page.” The response from the API will include a previous_cursor and next_cursor to allow paging back and forth. See Using cursors to navigate collections for more information.
pub fn count(&mut self, count: u64) -> &mut Self
[src]
pub fn count(&mut self, count: u64) -> &mut Self
[src]Specifies the number of IDs attempt retrieval of, up to a maximum of 5,000 per distinct request. The value of count is best thought of as a limit to the number of results to return. When using the count parameter with this method, it is wise to use a consistent count value across all requests to the same user’s collection. Usage of this parameter is encouraged in environments where all 5,000 IDs constitutes too large of a response.
impl<'a> FollowersIds<'a>
[src]
impl<'a> FollowersIds<'a>
[src]pub async fn send(&self) -> Result<FollowersIdsResult, Error>
[src]
Trait Implementations
impl<'a> Clone for FollowersIds<'a>
[src]
impl<'a> Clone for FollowersIds<'a>
[src]fn clone(&self) -> FollowersIds<'a>
[src]
fn clone(&self) -> FollowersIds<'a>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FollowersIds<'a>
impl<'a> Send for FollowersIds<'a>
impl<'a> Sync for FollowersIds<'a>
impl<'a> Unpin for FollowersIds<'a>
impl<'a> !UnwindSafe for FollowersIds<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more