[][src]Struct crossref::query::works::FieldQuery

pub struct FieldQuery {
    pub name: String,
    pub value: String,
}

Field queries are available on the /works route and allow for queries that match only particular fields of metadata.

Fields

name: String

match any only particular fields of metadata.

value: String

the value of the query

Methods

impl FieldQuery[src]

pub fn title(title: &str) -> Self[src]

creates a new Field query for title and subtitle

pub fn container_title(container_title: &str) -> Self[src]

creates a new Field query for container-title aka publication.name

pub fn author(author: &str) -> Self[src]

creates a new Field query author given and family names

pub fn editor(editor: &str) -> Self[src]

creates a new Field query for editor given and family names

pub fn chair(chair: &str) -> Self[src]

creates a new Field query for chair given and family names

pub fn translator(translator: &str) -> Self[src]

creates a new Field query for translator given and family names

pub fn contributor(contributor: &str) -> Self[src]

creates a new Field query for author, editor, chair and translator given and family names

pub fn bibliographic(bibliographic: &str) -> Self[src]

creates a new Field query for bibliographic information, useful for citation look up. Includes titles, authors, ISSNs and publication years

pub fn affiliation(affiliation: &str) -> Self[src]

creates a new Field query for contributor affiliations

Trait Implementations

impl CrossrefQueryParam for FieldQuery[src]

fn param(&self) -> Cow<str>[src]

constructs the full parameter for the query string by combining the key and value

impl Clone for FieldQuery[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for FieldQuery[src]

impl PartialEq<FieldQuery> for FieldQuery[src]

impl Debug for FieldQuery[src]

impl Serialize for FieldQuery[src]

impl<'de> Deserialize<'de> for FieldQuery[src]

Auto Trait Implementations

impl Send for FieldQuery

impl Sync for FieldQuery

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err