[−][src]Struct derpiboorust::Watched
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]
type ResponseValue = ImagesResponse
fn build(&self) -> Result<Url, Error>
[src]
impl<'a> Debug for Watched<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.