[−][src]Struct misskey_util::builder::UserListBuilder
Builder for the users
method.
Implementations
impl<C> UserListBuilder<C>
[src]
pub fn new(client: C) -> Self
[src]
Creates a builder with the client.
pub fn as_request(&self) -> &Request
[src]
Gets the request object for reuse.
pub fn order(&mut self, order: SortOrder<UserSortKey>) -> &mut Self
[src]
Sorts the results by the given order.
pub fn sort_by(&mut self, key: UserSortKey) -> &mut Self
[src]
Sorts the results in ascending order by the given key.
pub fn sort_by_followers(&mut self) -> &mut Self
[src]
Sorts the results in ascending order by number of followers.
This is equivalent to .sort_by(UserSortKey::Follower)
.
pub fn sort_by_creation_date(&mut self) -> &mut Self
[src]
Sorts the results in ascending order by creation date.
This is equivalent to .sort_by(UserSortKey::CreatedAt)
.
pub fn sort_by_update_date(&mut self) -> &mut Self
[src]
Sorts the results in ascending order by update date.
This is equivalent to .sort_by(UserSortKey::UpdatedAt)
.
pub fn origin(&mut self, origin: UserOrigin) -> &mut Self
[src]
Limits the listed users by its origin.
pub fn local(&mut self) -> &mut Self
[src]
Limits the listed users to local ones.
This is equivalent to .origin(UserOrigin::Local)
.
pub fn remote(&mut self) -> &mut Self
[src]
Limits the listed users to remote ones.
This is equivalent to .origin(UserOrigin::Remote)
.
pub fn moderator(&mut self) -> &mut Self
[src]
Limits the listed users to moderators.
pub fn alive(&mut self) -> &mut Self
[src]
Limits the listed users to alive ones.
pub fn admin(&mut self) -> &mut Self
[src]
Limits the listed users to admins.
pub fn admin_or_moderator(&mut self) -> &mut Self
[src]
Limits the listed users to admins or moderators.
impl<C: Client + Sync> UserListBuilder<C>
[src]
pub fn list(&self) -> PagerStream<BoxPager<'_, C, User>>
[src]
Lists the users.
Auto Trait Implementations
impl<C> RefUnwindSafe for UserListBuilder<C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<C> Send for UserListBuilder<C> where
C: Send,
[src]
C: Send,
impl<C> Sync for UserListBuilder<C> where
C: Sync,
[src]
C: Sync,
impl<C> Unpin for UserListBuilder<C> where
C: Unpin,
[src]
C: Unpin,
impl<C> UnwindSafe for UserListBuilder<C> where
C: UnwindSafe,
[src]
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,