[][src]Struct crossref::response::work::Work

pub struct Work {
    pub publisher: String,
    pub title: Vec<String>,
    pub original_title: Option<Vec<String>>,
    pub language: Option<String>,
    pub short_title: Option<Vec<String>>,
    pub abstract_: Option<String>,
    pub references_count: i32,
    pub is_referenced_by_count: i32,
    pub source: String,
    pub journal_issue: Option<Issue>,
    pub prefix: String,
    pub doi: String,
    pub url: String,
    pub member: String,
    pub type_: String,
    pub created: Option<Date>,
    pub date: Option<Date>,
    pub deposited: Option<Date>,
    pub score: Option<f32>,
    pub indexed: Date,
    pub issued: PartialDate,
    pub posted: Option<PartialDate>,
    pub accepted: Option<PartialDate>,
    pub subtitle: Option<Vec<String>>,
    pub container_title: Option<Vec<String>>,
    pub short_container_title: Option<Vec<String>>,
    pub group_title: Option<String>,
    pub issue: Option<String>,
    pub volume: Option<String>,
    pub page: Option<String>,
    pub article_number: Option<String>,
    pub published_print: Option<PartialDate>,
    pub published_online: Option<PartialDate>,
    pub subject: Option<Vec<String>>,
    pub issn: Option<Vec<String>>,
    pub issn_type: Option<Vec<ISSN>>,
    pub isbn: Option<Vec<String>>,
    pub archive: Option<Vec<String>>,
    pub license: Option<Vec<License>>,
    pub funder: Option<Vec<FundingBody>>,
    pub assertion: Option<Vec<Assertion>>,
    pub author: Option<Vec<Contributor>>,
    pub editor: Option<Vec<Contributor>>,
    pub chair: Option<Vec<Contributor>>,
    pub translator: Option<Vec<Contributor>>,
    pub update_to: Option<Vec<Update>>,
    pub update_policy: Option<String>,
    pub link: Option<Vec<ResourceLink>>,
    pub clinical_trial_number: Option<Vec<ClinicalTrialNumber>>,
    pub alternative_id: Option<Vec<String>>,
    pub reference: Option<Vec<Reference>>,
    pub content_domain: Option<ContentDomain>,
    pub relation: Option<Relations>,
    pub review: Option<Relations>,
}

the main return type of the crossref api represents a publication based on the crossref rest-api-doc with minor adjustments

Fields

publisher: String

Name of work's publisher

title: Vec<String>

Work titles, including translated titles

original_title: Option<Vec<String>>

Work titles in the work's original publication language

language: Option<String>

the language of this work

short_title: Option<Vec<String>>

Abstract as a JSON string or a JATS XML snippet encoded into a JSON string

abstract_: Option<String>

Abstract as a JSON string or a JATS XML snippet encoded into a JSON string

references_count: i32

Count of outbound references deposited with Crossref

is_referenced_by_count: i32

Count of inbound references deposited with Crossref

source: String

Currently always Crossref

journal_issue: Option<Issue>prefix: String

DOI prefix identifier of the form http://id.crossref.org/prefix/DOI_PREFIX

doi: String

DOI of the work

url: String

URL form of the work's DOI

member: String

Member identifier of the form http://id.crossref.org/member/MEMBER_ID

type_: String

Enumeration, one of the type ids from https://api.crossref.org/v1/types

created: Option<Date>

the day this work entry was created

date: Option<Date>

Date on which the DOI was first registered

deposited: Option<Date>

Date on which the work metadata was most recently updated

score: Option<f32>

the score of the publication if any not included in the crossrif api spec

indexed: Date

Date on which the work metadata was most recently indexed. Re-indexing does not imply a metadata change, see deposited for the most recent metadata change date

issued: PartialDate

Earliest of published-print and published-online

posted: Option<PartialDate>

ate on which posted content was made available online

accepted: Option<PartialDate>

Date on which a work was accepted, after being submitted, during a submission process

subtitle: Option<Vec<String>>

Work subtitles, including original language and translated

container_title: Option<Vec<String>>

Full titles of the containing work (usually a book or journal)

short_container_title: Option<Vec<String>>

Abbreviated titles of the containing work

group_title: Option<String>

Group title for posted content

issue: Option<String>

Issue number of an article's journal

volume: Option<String>

Volume number of an article's journal

page: Option<String>

Pages numbers of an article within its journal

article_number: Option<String>

the number of the corresponding article

published_print: Option<PartialDate>

Date on which the work was published in print

published_online: Option<PartialDate>

Date on which the work was published online

subject: Option<Vec<String>>

Subject category names, a controlled vocabulary from Sci-Val. Available for most journal articles

issn: Option<Vec<String>>issn_type: Option<Vec<ISSN>>

List of ISSNs with ISSN type information

isbn: Option<Vec<String>>archive: Option<Vec<String>>license: Option<Vec<License>>funder: Option<Vec<FundingBody>>assertion: Option<Vec<Assertion>>author: Option<Vec<Contributor>>editor: Option<Vec<Contributor>>chair: Option<Vec<Contributor>>translator: Option<Vec<Contributor>>update_to: Option<Vec<Update>>update_policy: Option<String>

Link to an update policy covering Crossmark updates for this work

link: Option<Vec<ResourceLink>>

URLs to full-text locations

clinical_trial_number: Option<Vec<ClinicalTrialNumber>>alternative_id: Option<Vec<String>>

Other identifiers for the work provided by the depositing member

reference: Option<Vec<Reference>>

List of references made by the work

content_domain: Option<ContentDomain>

Information on domains that support Crossmark for this work

relation: Option<Relations>

Relations to other works

review: Option<Relations>

Peer review metadata

Trait Implementations

impl Clone for Work[src]

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

Performs copy-assignment from source. Read more

impl Debug for Work[src]

impl Serialize for Work[src]

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

Auto Trait Implementations

impl Send for Work

impl Unpin for Work

impl Sync for Work

impl UnwindSafe for Work

impl RefUnwindSafe for Work

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> Erased for T

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

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