[][src]Enum crossref::WorkResultControl

pub enum WorkResultControl {
    Standard(ResultControl),
    Cursor {
        token: Option<String>,
        rows: Option<usize>,
    },
}

limits from where and how many Work items should be returned

Variants

Standard(ResultControl)

use the standard ResultControl available for all components

Cursor

If you are expecting results beyond 10K, then use a cursor to deep page through the results

Fields of Cursor

token: Option<String>

the cursor token provided by crossref when initially set to a value of *

rows: Option<usize>

limit the results

Methods

impl WorkResultControl[src]

pub fn new_cursor() -> Self[src]

set a cursor with * value, a new cursor will be provided in the next-cursor field of the result

pub fn cursor(token: &str) -> Self[src]

create a new Cursor with only a token value

Trait Implementations

impl CrossrefQueryParam for WorkResultControl[src]

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

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

impl Clone for WorkResultControl[src]

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

Performs copy-assignment from source. Read more

impl Debug for WorkResultControl[src]

impl Serialize for WorkResultControl[src]

impl<'de> Deserialize<'de> for WorkResultControl[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