Struct core_api_client::Work

source ·
pub struct Work {
Show 30 fields pub accepted_date: Option<String>, pub arxiv_id: Option<String>, pub authors: Option<Vec<Author>>, pub citation_count: Option<i32>, pub contributors: Option<Vec<String>>, pub outputs: Option<Vec<String>>, pub created_date: Option<String>, pub data_providers: Option<Vec<DataProvider>>, pub deposited_date: Option<String>, pub abstract_text: Option<String>, pub document_type: Option<String>, pub doi: Option<String>, pub download_url: Option<String>, pub field_of_study: Option<String>, pub full_text: Option<String>, pub id: Option<i32>, pub identifiers: Option<IdentifierEntry>, pub title: Option<String>, pub language: Option<Empty>, pub mag_id: Option<String>, pub oai_ids: Option<Vec<String>>, pub published_date: Option<String>, pub publisher: Option<String>, pub pubmed_id: Option<String>, pub references: Option<Vec<Reference>>, pub source_fulltext_urls: Option<Vec<String>>, pub journals: Option<Vec<Journal>>, pub updated_date: Option<String>, pub year_published: Option<String>, pub links: Option<Vec<LinkType>>,
}
Expand description

Struct holds the work information. More info on the work struct here

Fields§

§accepted_date: Option<String>

Date the work was accepted

§arxiv_id: Option<String>

ARXIV identifier of the work

§authors: Option<Vec<Author>>

List of authors of the work

§citation_count: Option<i32>

Number of citations the work has received

§contributors: Option<Vec<String>>

List of contributors to the work

§outputs: Option<Vec<String>>

List of outputs associated with the work

§created_date: Option<String>

Date the work was created

§data_providers: Option<Vec<DataProvider>>

List of data providers associated with the work

§deposited_date: Option<String>

Date the work was deposited

§abstract_text: Option<String>

Abstract text of the work

§document_type: Option<String>

Type of the document (e.g., article, thesis, etc.)

§doi: Option<String>

Digital Object Identifier (DOI) of the work

§download_url: Option<String>

URL for downloading the work

§field_of_study: Option<String>

Field of study associated with the work

§full_text: Option<String>

Full text of the work

§id: Option<i32>

ID of the work

§identifiers: Option<IdentifierEntry>

List of identifiers associated with the work

§title: Option<String>

Title of the work

§language: Option<Empty>

Language of the work

§mag_id: Option<String>

MAG (Microsoft Academic Graph) identifier of the work

§oai_ids: Option<Vec<String>>

List of OAI (Open Archives Initiative) identifiers of the work

§published_date: Option<String>

Date the work was published

§publisher: Option<String>

Publisher of the work

§pubmed_id: Option<String>

PubMed identifier of the work

§references: Option<Vec<Reference>>

List of references cited by the work

§source_fulltext_urls: Option<Vec<String>>

List of URLs to the full text of the work from different sources

§journals: Option<Vec<Journal>>

List of journals associated with the work

§updated_date: Option<String>

Date the work was last updated

§year_published: Option<String>

Year the work was published

§links: Option<Vec<LinkType>>

Trait Implementations§

source§

impl Debug for Work

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Work

source§

fn default() -> Work

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Work

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for Work

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Work

source§

fn eq(&self, other: &Work) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Work

source§

fn partial_cmp(&self, other: &Work) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for Work

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for Work

Auto Trait Implementations§

§

impl Freeze for Work

§

impl RefUnwindSafe for Work

§

impl Send for Work

§

impl Sync for Work

§

impl Unpin for Work

§

impl UnwindSafe for Work

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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