Struct CreativeWork

Source
pub struct CreativeWork {
Show 31 fields pub type_: CreativeWork_, pub about: Option<Vec<ThingTypes>>, pub alternate_names: Option<Vec<String>>, pub authors: Option<Vec<CreativeWorkAuthors>>, pub comments: Option<Vec<Comment>>, pub content: Option<Box<CreativeWorkContent>>, pub date_accepted: Option<Box<Date>>, pub date_created: Option<Box<Date>>, pub date_modified: Option<Box<Date>>, pub date_published: Option<Box<Date>>, pub date_received: Option<Box<Date>>, pub description: Option<Box<ThingDescription>>, pub editors: Option<Vec<Person>>, pub funded_by: Option<Vec<CreativeWorkFundedBy>>, pub funders: Option<Vec<CreativeWorkFunders>>, pub genre: Option<Vec<String>>, pub id: Option<Box<String>>, pub identifiers: Option<Vec<ThingIdentifiers>>, pub images: Option<Vec<ThingImages>>, pub is_part_of: Option<Box<CreativeWorkTypes>>, pub keywords: Option<Vec<String>>, pub licenses: Option<Vec<CreativeWorkLicenses>>, pub maintainers: Option<Vec<CreativeWorkMaintainers>>, pub name: Option<Box<String>>, pub parts: Option<Vec<CreativeWorkTypes>>, pub publisher: Option<Box<CreativeWorkPublisher>>, pub references: Option<Vec<CreativeWorkReferences>>, pub text: Option<Box<String>>, pub title: Option<Box<CreativeWorkTitle>>, pub url: Option<Box<String>>, pub version: Option<Box<CreativeWorkVersion>>,
}
Expand description

A creative work, including books, movies, photographs, software programs, etc.

Fields§

§type_: CreativeWork_

The name of this type

§about: Option<Vec<ThingTypes>>

The subject matter of the content.

§alternate_names: Option<Vec<String>>

Alternate names (aliases) for the item.

§authors: Option<Vec<CreativeWorkAuthors>>

The authors of this creative work.

§comments: Option<Vec<Comment>>

Comments about this creative work.

§content: Option<Box<CreativeWorkContent>>

The structured content of this creative work c.f. property text.

§date_accepted: Option<Box<Date>>

Date/time of acceptance.

§date_created: Option<Box<Date>>

Date/time of creation.

§date_modified: Option<Box<Date>>

Date/time of most recent modification.

§date_published: Option<Box<Date>>

Date of first publication.

§date_received: Option<Box<Date>>

Date/time that work was received.

§description: Option<Box<ThingDescription>>

A description of the item.

§editors: Option<Vec<Person>>

People who edited the CreativeWork.

§funded_by: Option<Vec<CreativeWorkFundedBy>>

Grants that funded the CreativeWork; reverse of fundedItems.

§funders: Option<Vec<CreativeWorkFunders>>

People or organizations that funded the CreativeWork.

§genre: Option<Vec<String>>

Genre of the creative work, broadcast channel or group.

§id: Option<Box<String>>

The identifier for this item.

§identifiers: Option<Vec<ThingIdentifiers>>

Any kind of identifier for any kind of Thing.

§images: Option<Vec<ThingImages>>

Images of the item.

§is_part_of: Option<Box<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<CreativeWorkLicenses>>

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

§maintainers: Option<Vec<CreativeWorkMaintainers>>

The people or organizations who maintain this CreativeWork.

§name: Option<Box<String>>

The name of the item.

§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<Box<CreativeWorkPublisher>>

A publisher of the CreativeWork.

§references: Option<Vec<CreativeWorkReferences>>

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

§text: Option<Box<String>>

The textual content of this creative work.

§title: Option<Box<CreativeWorkTitle>>

The title of the creative work.

§url: Option<Box<String>>

The URL of the item.

§version: Option<Box<CreativeWorkVersion>>

The version of the creative work.

Trait Implementations§

Source§

impl Clone for CreativeWork

Source§

fn clone(&self) -> CreativeWork

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CreativeWork

Source§

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

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

impl Default for CreativeWork

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for CreativeWork

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 Serialize for CreativeWork

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

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

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>,

Source§

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,