pub trait CrossrefParams {
type Filter: Filter;
// Required methods
fn query_terms(&self) -> &[String];
fn filters(&self) -> &[Self::Filter];
fn sort(&self) -> Option<&Sort>;
fn order(&self) -> Option<&Order>;
fn facets(&self) -> &[FacetCount];
fn result_control(&self) -> Option<&ResultControl>;
}Expand description
Helper trait for unified interface
Required Associated Types§
Required Methods§
Sourcefn query_terms(&self) -> &[String]
fn query_terms(&self) -> &[String]
all string queries
Sourcefn facets(&self) -> &[FacetCount]
fn facets(&self) -> &[FacetCount]
all facets this objects addresses
Sourcefn result_control(&self) -> Option<&ResultControl>
fn result_control(&self) -> Option<&ResultControl>
the configured result control, if any