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>,
}Expand description
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
Implementations§
Source§impl FundersQuery
impl FundersQuery
Sourcepub fn new<T: ToString>(query: T) -> Self
pub fn new<T: ToString>(query: T) -> Self
Convenience method to create a new query with a term directly
Sourcepub fn filter(self, filter: FundersFilter) -> Self
pub fn filter(self, filter: FundersFilter) -> Self
add a new filter to the query
Sourcepub fn order_desc(self) -> Self
pub fn order_desc(self) -> Self
set order to desc
Sourcepub fn facet(self, facet: FacetCount) -> Self
pub fn facet(self, facet: FacetCount) -> Self
add another facet to query
Sourcepub fn result_control(self, result_control: ResultControl) -> Self
pub fn result_control(self, result_control: ResultControl) -> Self
set result control option to query
Trait Implementations§
Source§impl Clone for FundersQuery
impl Clone for FundersQuery
Source§fn clone(&self) -> FundersQuery
fn clone(&self) -> FundersQuery
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 CrossrefParams for FundersQuery
impl CrossrefParams for FundersQuery
Source§type Filter = FundersFilter
type Filter = FundersFilter
the filter applied
Source§fn query_terms(&self) -> &[String]
fn query_terms(&self) -> &[String]
all string queries
Source§fn facets(&self) -> &[FacetCount]
fn facets(&self) -> &[FacetCount]
all facets this objects addresses
Source§fn result_control(&self) -> Option<&ResultControl>
fn result_control(&self) -> Option<&ResultControl>
the configured result control, if any
Source§impl CrossrefRoute for FundersQuery
impl CrossrefRoute for FundersQuery
Source§impl Debug for FundersQuery
impl Debug for FundersQuery
Source§impl Default for FundersQuery
impl Default for FundersQuery
Source§fn default() -> FundersQuery
fn default() -> FundersQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FundersQuery
impl RefUnwindSafe for FundersQuery
impl Send for FundersQuery
impl Sync for FundersQuery
impl Unpin for FundersQuery
impl UnsafeUnpin for FundersQuery
impl UnwindSafe for FundersQuery
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