pub struct FieldQuery {
pub name: String,
pub value: String,
}Expand description
Field queries are available on the /works route and allow for queries that match only particular fields of metadata.
Fields§
§name: Stringmatch any only particular fields of metadata.
value: Stringthe value of the query
Implementations§
Source§impl FieldQuery
impl FieldQuery
Sourcepub fn container_title(container_title: &str) -> Self
pub fn container_title(container_title: &str) -> Self
creates a new Field query for container-title aka publication.name
creates a new Field query author given and family names
Sourcepub fn editor(editor: &str) -> Self
pub fn editor(editor: &str) -> Self
creates a new Field query for editor given and family names
Sourcepub fn translator(translator: &str) -> Self
pub fn translator(translator: &str) -> Self
creates a new Field query for translator given and family names
Sourcepub fn contributor(contributor: &str) -> Self
pub fn contributor(contributor: &str) -> Self
creates a new Field query for author, editor, chair and translator given and family names
Sourcepub fn bibliographic(bibliographic: &str) -> Self
pub fn bibliographic(bibliographic: &str) -> Self
creates a new Field query for bibliographic information, useful for citation look up.
Includes titles, authors, ISSNs and publication years
Sourcepub fn affiliation(affiliation: &str) -> Self
pub fn affiliation(affiliation: &str) -> Self
creates a new Field query for contributor affiliations
Trait Implementations§
Source§impl Clone for FieldQuery
impl Clone for FieldQuery
Source§fn clone(&self) -> FieldQuery
fn clone(&self) -> FieldQuery
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 CrossrefQueryParam for FieldQuery
impl CrossrefQueryParam for FieldQuery
Auto Trait Implementations§
impl Freeze for FieldQuery
impl RefUnwindSafe for FieldQuery
impl Send for FieldQuery
impl Sync for FieldQuery
impl Unpin for FieldQuery
impl UnsafeUnpin for FieldQuery
impl UnwindSafe for FieldQuery
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