[−][src]Struct redbot::query_listing::QueryListingRequest
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(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,