pub struct SearchQueryBuilder { /* private fields */ }Expand description
Builder for SearchQuery.
Implementations§
Source§impl SearchQueryBuilder
impl SearchQueryBuilder
pub fn query<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn year_from<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
pub fn year_to<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn work_type<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn work_type<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Crossref type filter, e.g. “journal-article”
pub fn open_access<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn rows<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn sort<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<SearchQuery, SearchQueryBuilderError>
pub fn build(&self) -> Result<SearchQuery, SearchQueryBuilderError>
Trait Implementations§
Source§impl Clone for SearchQueryBuilder
impl Clone for SearchQueryBuilder
Source§fn clone(&self) -> SearchQueryBuilder
fn clone(&self) -> SearchQueryBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SearchQueryBuilder
impl RefUnwindSafe for SearchQueryBuilder
impl Send for SearchQueryBuilder
impl Sync for SearchQueryBuilder
impl Unpin for SearchQueryBuilder
impl UnsafeUnpin for SearchQueryBuilder
impl UnwindSafe for SearchQueryBuilder
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more