Struct stencila_schema::Comment [−][src]
pub struct Comment {}Show fields
pub type_: String, pub about: Option<Vec<ThingTypes>>, pub alternate_names: Option<Vec<String>>, pub authors: Option<Vec<CreativeWorkAuthors>>, pub comment_aspect: Option<String>, pub comments: Option<Vec<Comment>>, pub content: Option<Vec<Node>>, 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<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<String>, pub identifiers: Option<Vec<ThingIdentifiers>>, pub images: Option<Vec<ThingImages>>, pub is_part_of: Option<Arc<CreativeWorkTypes>>, pub keywords: Option<Vec<String>>, pub licenses: Option<Vec<CreativeWorkLicenses>>, pub maintainers: Option<Vec<CreativeWorkMaintainers>>, pub meta: Option<BTreeMap<String, Primitive>>, pub name: Option<String>, pub parent_item: Option<Arc<Comment>>, pub parts: Option<Vec<CreativeWorkTypes>>, pub publisher: Option<CreativeWorkPublisher>, pub references: Option<Vec<CreativeWorkReferences>>, pub text: Option<String>, pub title: Option<CreativeWorkTitle>, pub url: Option<String>, pub version: Option<CreativeWorkVersion>,
Expand description
A comment on an item, e.g on a Article, or SoftwareSourceCode.
Fields
type_: String
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.
The authors of this creative work.
comment_aspect: Option<String>
The part or facet of the item that is being commented on.
comments: Option<Vec<Comment>>
Comments about this creative work.
content: Option<Vec<Node>>
The structured content of this creative work c.f. property text
.
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<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<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<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<CreativeWorkLicenses>>
License documents that applies to this content, typically indicated by URL.
maintainers: Option<Vec<CreativeWorkMaintainers>>
The people or organizations who maintain this CreativeWork.
meta: Option<BTreeMap<String, Primitive>>
Metadata associated with this item.
name: Option<String>
The name of the item.
parent_item: Option<Arc<Comment>>
The parent comment of this comment.
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<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<String>
The textual content of this creative work.
title: Option<CreativeWorkTitle>
The title of the creative work.
url: Option<String>
The URL of the item.
version: Option<CreativeWorkVersion>
The version of the creative work.
Implementations
impl Comment
[src]
impl Comment
[src]pub fn deserialize_type<'de, D>(d: D) -> Result<String, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Trait Implementations
impl<'de> Deserialize<'de> for Comment where
Comment: Default,
[src]
impl<'de> Deserialize<'de> for Comment where
Comment: Default,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[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
Auto Trait Implementations
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,