Crate stencila_schema[][src]

Macros

impl_enum

Macro to implement functions for enum schemas

impl_struct

Macro to implement functions for struct schemas

Structs

ArrayValidator

A validator specifying constraints on an array node.

Article

An article, including news and scholarly articles.

AudioObject

An audio file

BooleanValidator

A schema specifying that a node must be a boolean value.

Brand

A brand used by an organization or person for labeling a product, product group, or similar.

Cite

A reference to a CreativeWork that is cited in another CreativeWork.

CiteGroup

A group of Cite nodes.

Claim

A claim represents specific reviewable facts or statements.

Code

Base type for code nodes e.g. CodeBlock, CodeExpression.

CodeBlock

A code block.

CodeChunk

A executable chunk of code.

CodeError

An error that occurred when parsing, compiling or executing a Code node.

CodeExpression

An expression defined in programming language source code.

CodeFragment

Inline code.

Collection

A collection of CreativeWorks or other artifacts.

Comment

A comment on an item, e.g on a Article, or SoftwareSourceCode.

ConstantValidator

A validator specifying a constant value that a node must have.

ContactPoint

A contact point, usually within an organization.

CreativeWork

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

Datatable

A table of data.

DatatableColumn

A column of data within a Datatable.

Date

A date encoded as a ISO 8601 string.

DefinedTerm

A word, name, acronym, phrase, etc. with a formal definition.

Delete

Content that is marked for deletion

Emphasis

Emphasised content.

Entity

The most simple compound (ie. non-atomic like number, string etc) type.

EnumValidator

A schema specifying that a node must be one of several values.

Enumeration

Lists or enumerations, for example, a list of cuisines or music genres, etc.

Figure

Encapsulates one or more images, videos, tables, etc, and provides captions and labels for them.

Function

A function with a name, which might take Parameters and return a value of a certain type.

Grant

A grant, typically financial or otherwise quantifiable, of resources.

Heading

A heading.

ImageObject

An image file.

Include

A directive to include content from an external source (e.g. file, URL) or content.

IntegerValidator

A validator specifying the constraints on an integer node.

Link

A hyperlink to other pages, sections within the same document, resources, or any URL.

List

A list of items.

ListItem

A single item in a list.

Mark

A base class for nodes that mark some other inline content in some way (e.g. as being emphasised, or quoted).

Math

A mathematical variable or equation.

MathBlock

A block of math, e.g an equation, to be treated as block content.

MathFragment

A fragment of math, e.g a variable name, to be treated as inline content.

MediaObject

A media object, such as an image, video, or audio object embedded in a web page or a downloadable dataset.

MonetaryGrant

A monetary grant.

NontextualAnnotation

Inline text that has a non-textual annotation.

Note

Additional content which is not part of the main content of a document.

NumberValidator

A validator specifying the constraints on a numeric node.

Organization

An organization such as a school, NGO, corporation, club, etc.

Paragraph

Paragraph

Parameter

A parameter that can be set and used in evaluated code.

Periodical

A periodical publication.

Person

A person (alive, dead, undead, or fictional).

PostalAddress

A physical mailing address.

Product

Any offered product or service. For example, a pair of shoes; a haircut; or an episode of a TV show streamed online.

PropertyValue

A property-value pair.

PublicationIssue

A part of a successively published publication such as a periodical or publication volume, often numbered.

PublicationVolume

A part of a successively published publication such as a periodical or multi-volume work.

Quote

Inline, quoted content.

QuoteBlock

A section quoted from somewhere else.

Review

A review of an item, e.g of an Article, or SoftwareSourceCode.

SoftwareApplication

A software application.

SoftwareEnvironment

A computational environment.

SoftwareSession

Definition of a compute session, including its software and compute resource requirements and status.

SoftwareSourceCode

Computer programming source code. Example: Full (compile ready) solutions, code snippet samples, scripts, templates.

StringValidator

A schema specifying constraints on a string node.

Strong

Strongly emphasised content.

Subscript

Subscripted content.

Superscript

Superscripted content.

Table

A table.

TableCell

A cell within a Table.

TableRow

A row within a Table.

ThematicBreak

A thematic break, such as a scene change in a story, a transition to another topic, or a new document.

Thing

The most generic type of item.

TupleValidator

A validator specifying constraints on an array of heterogeneous items.

Validator

A base for all validator types.

Variable

A variable representing a name / value pair.

VideoObject

A video file.

VolumeMount

Describes a volume mount from a host to container.

Enums

ArticlePageEnd

Types permitted for the pageEnd property of a Article node.

ArticlePageStart

Types permitted for the pageStart property of a Article node.

BlockContent

Union type for valid block content.

BrandLogo

Types permitted for the logo property of a Brand node.

CitationIntentEnumeration

The type or nature of a citation, both factually and rhetorically.

CiteCitationMode
CitePageEnd

Types permitted for the pageEnd property of a Cite node.

CitePageStart

Types permitted for the pageStart property of a Cite node.

ClaimClaimType
CodeBlockTypes

All type schemas that are derived from CodeBlock

CodeChunkAssigns

Types permitted for the assigns property of a CodeChunk node.

CodeChunkCaption

Types permitted for the caption property of a CodeChunk node.

CodeChunkDeclares

Types permitted for the declares property of a CodeChunk node.

CodeChunkImports

Types permitted for the imports property of a CodeChunk node.

CodeChunkUses

Types permitted for the uses property of a CodeChunk node.

CodeFragmentTypes

All type schemas that are derived from CodeFragment

CodeTypes

All type schemas that are derived from Code

ContactPointTypes

All type schemas that are derived from ContactPoint

CreativeWorkAuthors

Types permitted for the authors property of a CreativeWork node.

CreativeWorkContent

Types permitted for the content property of a CreativeWork node.

CreativeWorkFundedBy

Types permitted for the fundedBy property of a CreativeWork node.

CreativeWorkFunders

Types permitted for the funders property of a CreativeWork node.

CreativeWorkLicenses

Types permitted for the licenses property of a CreativeWork node.

CreativeWorkMaintainers

Types permitted for the maintainers property of a CreativeWork node.

CreativeWorkPublisher

Types permitted for the publisher property of a CreativeWork node.

CreativeWorkReferences

Types permitted for the references property of a CreativeWork node.

CreativeWorkTitle

Types permitted for the title property of a CreativeWork node.

CreativeWorkTypes

All type schemas that are derived from CreativeWork

CreativeWorkVersion

Types permitted for the version property of a CreativeWork node.

EntityTypes

All type schemas that are derived from Entity

EnumerationTypes

All type schemas that are derived from Enumeration

FigureCaption

Types permitted for the caption property of a Figure node.

GrantSponsors

Types permitted for the sponsors property of a Grant node.

GrantTypes

All type schemas that are derived from Grant

InlineContent

Union type for valid inline content.

ListItemContent

Types permitted for the content property of a ListItem node.

ListOrder
MarkTypes

All type schemas that are derived from Mark

MathTypes

All type schemas that are derived from Math

MediaObjectTypes

All type schemas that are derived from MediaObject

MonetaryGrantFunders

Types permitted for the funders property of a MonetaryGrant node.

Node

Union type for all schema nodes, including primitives and entities

NoteNoteType
OrganizationAddress

Types permitted for the address property of a Organization node.

OrganizationFunders

Types permitted for the funders property of a Organization node.

OrganizationLogo

Types permitted for the logo property of a Organization node.

OrganizationMembers

Types permitted for the members property of a Organization node.

PersonAddress

Types permitted for the address property of a Person node.

PersonFunders

Types permitted for the funders property of a Person node.

Primitive

The set of primitive (non-Entity) node types

ProductLogo

Types permitted for the logo property of a Product node.

PropertyValueValue

Types permitted for the value property of a PropertyValue node.

PublicationIssueIssueNumber

Types permitted for the issueNumber property of a PublicationIssue node.

PublicationIssuePageEnd

Types permitted for the pageEnd property of a PublicationIssue node.

PublicationIssuePageStart

Types permitted for the pageStart property of a PublicationIssue node.

PublicationVolumePageEnd

Types permitted for the pageEnd property of a PublicationVolume node.

PublicationVolumePageStart

Types permitted for the pageStart property of a PublicationVolume node.

PublicationVolumeVolumeNumber

Types permitted for the volumeNumber property of a PublicationVolume node.

QuoteBlockCite

Types permitted for the cite property of a QuoteBlock node.

QuoteCite

Types permitted for the cite property of a Quote node.

SoftwareSessionStatus
SoftwareSourceCodeSoftwareRequirements

Types permitted for the softwareRequirements property of a SoftwareSourceCode node.

TableCaption

Types permitted for the caption property of a Table node.

TableCellCellType
TableCellContent

Types permitted for the content property of a TableCell node.

TableRowRowType
ThingDescription

Types permitted for the description property of a Thing node.

ThingIdentifiers

Types permitted for the identifiers property of a Thing node.

ThingImages

Types permitted for the images property of a Thing node.

ThingTypes

All type schemas that are derived from Thing

ValidatorTypes

All type schemas that are derived from Validator

VariableTypes

All type schemas that are derived from Variable

Traits

NodeTrait

A trait for methods that can be called on all types of nodes