Struct arxiv::ArxivQueryBuilder[][src]

pub struct ArxivQueryBuilder {
    pub base_url: String,
    pub search_query: String,
    pub id_list: String,
    pub start: Option<i32>,
    pub max_results: Option<i32>,
    pub sort_by: String,
    pub sort_order: String,
}

A builder of ArxivQuery

Fields

base_url: Stringsearch_query: Stringid_list: Stringstart: Option<i32>max_results: Option<i32>sort_by: Stringsort_order: String

Implementations

impl ArxivQueryBuilder[src]

pub fn new() -> Self[src]

pub fn build(&self) -> ArxivQuery[src]

Build ArxivQuery from ArxivQueryBuilder.

pub fn search_query(&self, search_query: &str) -> Self[src]

Store the argument value in search_query.

pub fn id_list(&self, id_list: &str) -> Self[src]

Store the argument value in id_list.

pub fn start(&self, start: i32) -> Self[src]

Store the argument value in start.

pub fn max_results(&self, max_results: i32) -> Self[src]

Store the argument value in max_results.

pub fn sort_by(&self, sort_by: &str) -> Self[src]

Store the argument value in sort_by.

pub fn sort_order(&self, sort_order: &str) -> Self[src]

Store the argument value in sort_order.

Trait Implementations

impl Clone for ArxivQueryBuilder[src]

impl Debug for ArxivQueryBuilder[src]

impl Default for ArxivQueryBuilder[src]

impl Eq for ArxivQueryBuilder[src]

impl PartialEq<ArxivQueryBuilder> for ArxivQueryBuilder[src]

impl StructuralEq for ArxivQueryBuilder[src]

impl StructuralPartialEq for ArxivQueryBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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.