pub struct MembersQuery {
pub queries: Vec<String>,
pub filter: Vec<MembersFilter>,
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<MembersFilter>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 MembersQuery
impl MembersQuery
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: MembersFilter) -> Self
pub fn filter(self, filter: MembersFilter) -> 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 MembersQuery
impl Clone for MembersQuery
Source§fn clone(&self) -> MembersQuery
fn clone(&self) -> MembersQuery
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 MembersQuery
impl CrossrefParams for MembersQuery
Source§type Filter = MembersFilter
type Filter = MembersFilter
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 MembersQuery
impl CrossrefRoute for MembersQuery
Source§impl Debug for MembersQuery
impl Debug for MembersQuery
Source§impl Default for MembersQuery
impl Default for MembersQuery
Source§fn default() -> MembersQuery
fn default() -> MembersQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MembersQuery
impl RefUnwindSafe for MembersQuery
impl Send for MembersQuery
impl Sync for MembersQuery
impl Unpin for MembersQuery
impl UnsafeUnpin for MembersQuery
impl UnwindSafe for MembersQuery
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