pub enum ResultControl {
Rows(usize),
Offset(usize),
RowsOffset {
rows: usize,
offset: usize,
},
Sample(usize),
}Expand description
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
Sample(usize)
return random results
Trait Implementations§
Source§impl Clone for ResultControl
impl Clone for ResultControl
Source§fn clone(&self) -> ResultControl
fn clone(&self) -> ResultControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CrossrefQueryParam for ResultControl
impl CrossrefQueryParam for ResultControl
Auto Trait Implementations§
impl Freeze for ResultControl
impl RefUnwindSafe for ResultControl
impl Send for ResultControl
impl Sync for ResultControl
impl Unpin for ResultControl
impl UnsafeUnpin for ResultControl
impl UnwindSafe for ResultControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more