[][src]Struct top_gg::client::request::SearchBots

pub struct SearchBots<'a> { /* fields omitted */ }

Request to search for a list of bots given some parameters.

Refer to Client::get_bots for more information.

Methods

impl<'a> SearchBots<'a>[src]

pub fn limit(self, limit: u16) -> Self[src]

The amount of bots to return, used for pagination.

The maximum value is 500.

pub fn offset(self, offset: u64) -> Self[src]

The amount of bots to skip, used for pagination.

pub fn search(self, query: impl Into<String>) -> Self[src]

A search query string.

pub fn sort(self, field: impl Display, ascending: bool) -> Self[src]

The field to sort by.

Trait Implementations

impl<'_> Future for SearchBots<'_>[src]

type Output = Result<SearchResponse<Bot>>

The type of value produced on completion.

Auto Trait Implementations

impl<'a> Send for SearchBots<'a>

impl<'a> !Sync for SearchBots<'a>

impl<'a> Unpin for SearchBots<'a>

impl<'a> !UnwindSafe for SearchBots<'a>

impl<'a> !RefUnwindSafe for SearchBots<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<Fut> TryFutureExt for Fut where
    Fut: TryFuture + ?Sized
[src]