pub struct UserListBuilder<C> { /* private fields */ }Expand description
Builder for the users method.
Implementations§
Source§impl<C> UserListBuilder<C>
impl<C> UserListBuilder<C>
Sourcepub fn as_request(&self) -> &Request
pub fn as_request(&self) -> &Request
Gets the request object for reuse.
Sourcepub fn order(&mut self, order: SortOrder<UserSortKey>) -> &mut Self
pub fn order(&mut self, order: SortOrder<UserSortKey>) -> &mut Self
Sorts the results by the given order.
Sourcepub fn sort_by(&mut self, key: UserSortKey) -> &mut Self
pub fn sort_by(&mut self, key: UserSortKey) -> &mut Self
Sorts the results in ascending order by the given key.
Sourcepub fn sort_by_followers(&mut self) -> &mut Self
pub fn sort_by_followers(&mut self) -> &mut Self
Sorts the results in ascending order by number of followers.
This is equivalent to .sort_by(UserSortKey::Follower).
Sourcepub fn sort_by_creation_date(&mut self) -> &mut Self
pub fn sort_by_creation_date(&mut self) -> &mut Self
Sorts the results in ascending order by creation date.
This is equivalent to .sort_by(UserSortKey::CreatedAt).
Sourcepub fn sort_by_update_date(&mut self) -> &mut Self
pub fn sort_by_update_date(&mut self) -> &mut Self
Sorts the results in ascending order by update date.
This is equivalent to .sort_by(UserSortKey::UpdatedAt).
Sourcepub fn origin(&mut self, origin: UserOrigin) -> &mut Self
pub fn origin(&mut self, origin: UserOrigin) -> &mut Self
Limits the listed users by its origin.
Sourcepub fn local(&mut self) -> &mut Self
pub fn local(&mut self) -> &mut Self
Limits the listed users to local ones.
This is equivalent to .origin(UserOrigin::Local).
Sourcepub fn remote(&mut self) -> &mut Self
pub fn remote(&mut self) -> &mut Self
Limits the listed users to remote ones.
This is equivalent to .origin(UserOrigin::Remote).
Sourcepub fn admin_or_moderator(&mut self) -> &mut Self
pub fn admin_or_moderator(&mut self) -> &mut Self
Limits the listed users to admins or moderators.
Source§impl<C: Client + Sync> UserListBuilder<C>
impl<C: Client + Sync> UserListBuilder<C>
Sourcepub fn list(&self) -> PagerStream<BoxPager<'_, C, User>>
pub fn list(&self) -> PagerStream<BoxPager<'_, C, User>>
Lists the users.