pub struct ArticleQueryBuilder { /* private fields */ }Expand description
Builder for ArticleQuery.
Implementations§
Source§impl ArticleQueryBuilder
impl ArticleQueryBuilder
Sourcepub fn search_for(self, search_for: impl Into<String>) -> Self
pub fn search_for(self, search_for: impl Into<String>) -> Self
Sets the free-form search string used by search endpoints.
Sourcepub fn published_since(self, published_since: impl Into<String>) -> Self
pub fn published_since(self, published_since: impl Into<String>) -> Self
Sets the publication lower bound.
Sourcepub fn modified_since(self, modified_since: impl Into<String>) -> Self
pub fn modified_since(self, modified_since: impl Into<String>) -> Self
Sets the modification lower bound.
Sourcepub fn institution(self, institution: u64) -> Self
pub fn institution(self, institution: u64) -> Self
Restricts results to one institution.
Sourcepub fn item_type(self, item_type: DefinedType) -> Self
pub fn item_type(self, item_type: DefinedType) -> Self
Restricts results to one defined type.
Sourcepub fn resource_doi(self, resource_doi: impl Into<String>) -> Self
pub fn resource_doi(self, resource_doi: impl Into<String>) -> Self
Filters by resource DOI.
Sourcepub fn project_id(self, project_id: u64) -> Self
pub fn project_id(self, project_id: u64) -> Self
Filters by project ID.
Sourcepub fn resource_title(self, resource_title: impl Into<String>) -> Self
pub fn resource_title(self, resource_title: impl Into<String>) -> Self
Legacy resource title filter retained only for compatibility checks.
Sourcepub fn order(self, order: ArticleOrder) -> Self
pub fn order(self, order: ArticleOrder) -> Self
Sets the sort field.
Sourcepub fn order_direction(self, order_direction: OrderDirection) -> Self
pub fn order_direction(self, order_direction: OrderDirection) -> Self
Sets the sort direction.
Sourcepub fn custom(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn custom(self, key: impl Into<String>, value: impl Into<String>) -> Self
Adds a raw custom key-value pair.
Sourcepub fn build(self) -> ArticleQuery
pub fn build(self) -> ArticleQuery
Finishes the builder.
Trait Implementations§
Source§impl Clone for ArticleQueryBuilder
impl Clone for ArticleQueryBuilder
Source§fn clone(&self) -> ArticleQueryBuilder
fn clone(&self) -> ArticleQueryBuilder
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 moreSource§impl Debug for ArticleQueryBuilder
impl Debug for ArticleQueryBuilder
Source§impl Default for ArticleQueryBuilder
impl Default for ArticleQueryBuilder
Source§fn default() -> ArticleQueryBuilder
fn default() -> ArticleQueryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArticleQueryBuilder
impl RefUnwindSafe for ArticleQueryBuilder
impl Send for ArticleQueryBuilder
impl Sync for ArticleQueryBuilder
impl Unpin for ArticleQueryBuilder
impl UnsafeUnpin for ArticleQueryBuilder
impl UnwindSafe for ArticleQueryBuilder
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