[][src]Struct redbot::query_listing::QueryListingRequest

pub struct QueryListingRequest<'a> {
    pub path: &'a str,
    pub params: &'a [(&'a str, &'a str)],
    pub after: Option<&'a str>,
    pub count: u64,
    pub limit: u64,
    pub requests: u64,
    pub show_all: bool,
}

Builder struct for constructing requests to a listing endpoint.

Fields

path: &'a str

The relative URL path

params: &'a [(&'a str, &'a str)]

The optional URL query parameters to supply

after: Option<&'a str>

The optional fullname to start at

count: u64

The number received so far

limit: u64

The number of items to get per request

requests: u64

The number of requests to make

show_all: bool

Wether to show all items (true) or follow hidden items settings (false)

Methods

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

pub fn new(path: &'a str, limit: u64, requests: u64) -> Self[src]

Construct a new builder.

pub fn path(self, path: &'a str) -> Self[src]

Override the path field.

pub fn params(self, params: &'a [(&'a str, &'a str)]) -> Self[src]

Override the params field.

pub fn after(self, after: Option<&'a str>) -> Self[src]

Override the after field.

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

Override the count field.

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

Override the limit field.

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

Override the requests field.

pub fn show_all(self, show_all: bool) -> Self[src]

Override the show_all field.

Trait Implementations

impl<'a> Clone for QueryListingRequest<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for QueryListingRequest<'a>[src]

Auto Trait Implementations

impl<'a> Send for QueryListingRequest<'a>

impl<'a> Sync for QueryListingRequest<'a>

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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