Struct stencila_schema::Article[][src]

pub struct Article {
Show fields pub type_: String, pub about: Option<Vec<Thing>>, pub alternate_names: Option<Vec<String>>, pub authors: Option<Vec<ArticleAuthors>>, pub comments: Option<Vec<Comment>>, pub content: Option<Vec<BlockContent>>, pub date_accepted: Option<Date>, pub date_created: Option<Date>, pub date_modified: Option<Date>, pub date_published: Option<Date>, pub date_received: Option<Date>, pub description: Option<ArticleDescription>, pub editors: Option<Vec<Person>>, pub funded_by: Option<Vec<ArticleFundedBy>>, pub funders: Option<Vec<ArticleFunders>>, pub genre: Option<Vec<String>>, pub id: Option<String>, pub identifiers: Option<Vec<ArticleIdentifiers>>, pub images: Option<Vec<ArticleImages>>, pub is_part_of: Option<Arc<CreativeWorkTypes>>, pub keywords: Option<Vec<String>>, pub licenses: Option<Vec<ArticleLicenses>>, pub maintainers: Option<Vec<ArticleMaintainers>>, pub meta: Option<HashMap<String, Value>>, pub name: Option<String>, pub page_end: Option<ArticlePageEnd>, pub page_start: Option<ArticlePageStart>, pub pagination: Option<String>, pub parts: Option<Vec<CreativeWorkTypes>>, pub publisher: Option<ArticlePublisher>, pub references: Option<Vec<ArticleReferences>>, pub text: Option<String>, pub title: Option<ArticleTitle>, pub url: Option<String>, pub version: Option<ArticleVersion>,
}
Expand description

An article, including news and scholarly articles.

Fields

type_: String

The name of this type

about: Option<Vec<Thing>>

The subject matter of the content.

alternate_names: Option<Vec<String>>

Alternate names (aliases) for the item.

authors: Option<Vec<ArticleAuthors>>

The authors of this creative work.

comments: Option<Vec<Comment>>

Comments about this creative work.

content: Option<Vec<BlockContent>>

The structured content of this article.

date_accepted: Option<Date>

Date/time of acceptance.

date_created: Option<Date>

Date/time of creation.

date_modified: Option<Date>

Date/time of most recent modification.

date_published: Option<Date>

Date of first publication.

date_received: Option<Date>

Date/time that work was received.

description: Option<ArticleDescription>

A description of the item.

editors: Option<Vec<Person>>

People who edited the CreativeWork.

funded_by: Option<Vec<ArticleFundedBy>>

Grants that funded the CreativeWork; reverse of fundedItems.

funders: Option<Vec<ArticleFunders>>

People or organizations that funded the CreativeWork.

genre: Option<Vec<String>>

Genre of the creative work, broadcast channel or group.

id: Option<String>

The identifier for this item.

identifiers: Option<Vec<ArticleIdentifiers>>

Any kind of identifier for any kind of Thing.

images: Option<Vec<ArticleImages>>

Images of the item.

is_part_of: Option<Arc<CreativeWorkTypes>>

An item or other CreativeWork that this CreativeWork is a part of.

keywords: Option<Vec<String>>

Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas.

licenses: Option<Vec<ArticleLicenses>>

License documents that applies to this content, typically indicated by URL.

maintainers: Option<Vec<ArticleMaintainers>>

The people or organizations who maintain this CreativeWork.

meta: Option<HashMap<String, Value>>

Metadata associated with this item.

name: Option<String>

The name of the item.

page_end: Option<ArticlePageEnd>

The page on which the article ends; for example “138” or “xvi”.

page_start: Option<ArticlePageStart>

The page on which the article starts; for example “135” or “xiii”.

pagination: Option<String>

Any description of pages that is not separated into pageStart and pageEnd; for example, “1-6, 9, 55”.

parts: Option<Vec<CreativeWorkTypes>>

Elements of the collection which can be a variety of different elements, such as Articles, Datatables, Tables and more.

publisher: Option<ArticlePublisher>

A publisher of the CreativeWork.

references: Option<Vec<ArticleReferences>>

References to other creative works, such as another publication, web page, scholarly article, etc.

text: Option<String>

The textual content of this creative work.

title: Option<ArticleTitle>

The title of the creative work.

url: Option<String>

The URL of the item.

version: Option<ArticleVersion>

The version of the creative work.

Implementations

impl Article[src]

pub fn deserialize_type<'de, D>(d: D) -> Result<String, D::Error> where
    D: Deserializer<'de>, 
[src]

Trait Implementations

impl Clone for Article[src]

fn clone(&self) -> Article[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Article[src]

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

Formats the value using the given formatter. Read more

impl Default for Article[src]

fn default() -> Self[src]

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

impl<'de> Deserialize<'de> for Article where
    Article: Default
[src]

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Article[src]

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl RefUnwindSafe for Article

impl Send for Article

impl Sync for Article

impl Unpin for Article

impl UnwindSafe for Article

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

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

Performs the conversion.

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.

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

Performs the conversion.

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