[][src]Struct derpiboorust::Images

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

Request for fetching images (/images.json).

use derpiboorust::{Images, Bound, Order};

let request = Images::new()
    .page(4)
    .constraint("id")
    .constraint_bound(Bound::Gte("12345"))
    .constraint_order(Order::Descending)
    .random();

Methods

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

pub fn new() -> Self[src]

Create new images request.

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

Search and sort by a specific field.

pub fn constraint_bound(self, bound: Bound<'a>) -> Self[src]

When specified, constraint field must be match bound.

pub fn constraint_order(self, order: Order) -> Self[src]

Sort order for constraint.

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

The page offset.

pub fn random(self) -> Self[src]

When set, order the images randomly.

Trait Implementations

impl<'a> Request<'a> for Images<'a>[src]

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

Auto Trait Implementations

impl<'a> Send for Images<'a>

impl<'a> Sync for Images<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T