pub struct JournalsQuery {
pub queries: Vec<String>,
pub result_control: Option<ResultControl>,
}Expand description
Used to construct a query that targets crossref Journal elements
§Example
use crossref_client::{JournalsQuery, ResultControl};
let query = JournalsQuery::new("Economic Geography")
.result_control(ResultControl::Rows(10));/journals is one of the narrowest list routes: it takes free form
query terms and paging, and rejects filter, sort, order, facet,
select and sample with a 400. The query type mirrors that rather
than offering options the route cannot honour.
Fields§
§queries: Vec<String>search by non specific query
result_control: Option<ResultControl>limit the returned items and set an offset
Only rows and offset are supported by this route;
ResultControl::Sample is rejected by crossref with a 400.
Implementations§
Source§impl JournalsQuery
impl JournalsQuery
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 result_control(
self,
result_control: impl Into<Option<ResultControl>>,
) -> Self
pub fn result_control( self, result_control: impl Into<Option<ResultControl>>, ) -> Self
Limit the results, or take crossref’s default page if given None.
Trait Implementations§
Source§impl Clone for JournalsQuery
impl Clone for JournalsQuery
Source§impl CrossrefRoute for JournalsQuery
impl CrossrefRoute for JournalsQuery
Source§impl Debug for JournalsQuery
impl Debug for JournalsQuery
Source§impl Default for JournalsQuery
impl Default for JournalsQuery
impl Eq for JournalsQuery
Source§impl PartialEq for JournalsQuery
impl PartialEq for JournalsQuery
impl StructuralPartialEq for JournalsQuery
Auto Trait Implementations§
impl Freeze for JournalsQuery
impl RefUnwindSafe for JournalsQuery
impl Send for JournalsQuery
impl Sync for JournalsQuery
impl Unpin for JournalsQuery
impl UnsafeUnpin for JournalsQuery
impl UnwindSafe for JournalsQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.