[−][src]Struct misskey::builder::UserListBuilder
Builder for the users
method.
Implementations
impl<C> UserListBuilder<C>
[src]
pub fn new(client: C) -> UserListBuilder<C>
[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 UserListBuilder<C>
[src]
&mut self,
order: SortOrder<UserSortKey>
) -> &mut UserListBuilder<C>
Sorts the results by the given order.
pub fn sort_by(&mut self, key: UserSortKey) -> &mut UserListBuilder<C>
[src]
Sorts the results in ascending order by the given key.
pub fn sort_by_followers(&mut self) -> &mut UserListBuilder<C>
[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 UserListBuilder<C>
[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 UserListBuilder<C>
[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 UserListBuilder<C>
[src]
Limits the listed users by its origin.
pub fn local(&mut self) -> &mut UserListBuilder<C>
[src]
Limits the listed users to local ones.
This is equivalent to .origin(UserOrigin::Local)
.
pub fn remote(&mut self) -> &mut UserListBuilder<C>
[src]
Limits the listed users to remote ones.
This is equivalent to .origin(UserOrigin::Remote)
.
pub fn moderator(&mut self) -> &mut UserListBuilder<C>
[src]
Limits the listed users to moderators.
pub fn alive(&mut self) -> &mut UserListBuilder<C>
[src]
Limits the listed users to alive ones.
pub fn admin(&mut self) -> &mut UserListBuilder<C>
[src]
Limits the listed users to admins.
pub fn admin_or_moderator(&mut self) -> &mut UserListBuilder<C>
[src]
Limits the listed users to admins or moderators.
impl<C> UserListBuilder<C> where
C: Sync + Client,
[src]
C: Sync + Client,
pub fn list(
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<<C as Client>::Error>>, Content = User, Client = C> + Send, Global>>>
[src]
&self
) -> PagerStream<Pin<Box<dyn Pager<Item = Result<Vec<User, Global>, Error<<C as Client>::Error>>, Content = User, Client = C> + Send, Global>>>
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,