[][src]Struct crossref::query::funders::FundersQuery

pub struct FundersQuery {
    pub queries: Vec<String>,
    pub filter: Vec<FundersFilter>,
    pub sort: Option<Sort>,
    pub order: Option<Order>,
    pub facets: Vec<FacetCount>,
    pub result_control: Option<ResultControl>,
}

Each query parameter is ANDed

Fields

queries: Vec<String>

search by non specific query

filter: Vec<FundersFilter>

filter to apply while querying

sort: Option<Sort>

sort results by a certain field and

order: Option<Order>

set the sort order to asc or desc

facets: Vec<FacetCount>

enable facet information in responses

result_control: Option<ResultControl>

deep page through /works result sets

Methods

impl FundersQuery[src]

pub fn empty() -> Self[src]

alias for creating an empty default element

pub fn new<T: ToString>(query: T) -> Self[src]

Convenience method to create a new query with a term directly

pub fn query<T: ToString>(self, query: T) -> Self[src]

add a new free form query

pub fn filter(self, filter: FundersFilter) -> Self[src]

add a new filter to the query

pub fn sort(self, sort: Sort) -> Self[src]

set sort option to the query

pub fn order_asc(self) -> Self[src]

set order to asc

pub fn order_desc(self) -> Self[src]

set order to desc

pub fn order(self, order: Order) -> Self[src]

set order option to query

pub fn facet(self, facet: FacetCount) -> Self[src]

add another facet to query

pub fn result_control(self, result_control: ResultControl) -> Self[src]

set result control option to query

Trait Implementations

impl CrossrefParams for FundersQuery[src]

type Filter = FundersFilter

the filter applied

impl CrossrefRoute for FundersQuery[src]

impl Default for FundersQuery[src]

impl Clone for FundersQuery[src]

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

Performs copy-assignment from source. Read more

impl Debug for FundersQuery[src]

Auto Trait Implementations

Blanket Implementations

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> From<T> for T[src]

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> Erased for T

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

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