[][src]Trait crossref::query::CrossrefQueryParam

pub trait CrossrefQueryParam {
    fn param_key(&self) -> Cow<str>;
fn param_value(&self) -> Option<Cow<str>>; fn param(&self) -> Cow<str> { ... } }

a trait used to capture parameters for the query string of the crossref api

Required methods

fn param_key(&self) -> Cow<str>

the key name of the parameter in the query string

fn param_value(&self) -> Option<Cow<str>>

the value of the parameter, if any

Loading content...

Provided methods

fn param(&self) -> Cow<str>

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

Loading content...

Implementations on Foreign Types

impl CrossrefQueryParam for Vec<FacetCount>[src]

impl<T: Filter> CrossrefQueryParam for Vec<T>[src]

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

always use filter as the key

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

filters are multi value and values are concat with ,

impl<T: AsRef<str>> CrossrefQueryParam for (T, T)[src]

Loading content...

Implementors

impl CrossrefQueryParam for Order[src]

impl CrossrefQueryParam for ResultControl[src]

impl CrossrefQueryParam for Sort[src]

impl CrossrefQueryParam for WorkResultControl[src]

impl CrossrefQueryParam for FieldQuery[src]

Loading content...