[][src]Struct derpiboorust::Watched

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

Request for fetching user watched images (/images/watched.json).

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

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

Methods

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

pub fn new(key: &'a str) -> Self[src]

Create new watched 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 Watched<'a>[src]

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

Auto Trait Implementations

impl<'a> Send for Watched<'a>

impl<'a> Sync for Watched<'a>

Blanket Implementations

impl<T> From for T[src]

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

impl<T> BorrowMut 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> Erased for T