[][src]Enum crossref::query::ResultControl

pub enum ResultControl {
    Rows(usize),
    Offset(usize),
    RowsOffset {
        rows: usize,
        offset: usize,
    },
    Sample(usize),
}

tells crossref how many items shall be returned or where to start

Variants

Rows(usize)

limits the returned items per page

Offset(usize)

sets an offset where crossref begins to retrieve items high offsets (~10k) result in long response times

RowsOffset

combines rows and offset: limit returned items per page, starting at the offset

Fields of RowsOffset

rows: usize

row limit

offset: usize

where to start

Sample(usize)

return random results

Trait Implementations

impl CrossrefQueryParam for ResultControl[src]

fn param(&self) -> Cow<str>[src]

constructs the full parameter for the query string by combining the key and value

impl Clone for ResultControl[src]

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

Performs copy-assignment from source. Read more

impl Debug for ResultControl[src]

impl Serialize for ResultControl[src]

impl<'de> Deserialize<'de> for ResultControl[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

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

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