Enum stencila_schema::BlockContent[][src]

pub enum BlockContent {
Show 13 variants Claim(ClaimSimple), CodeBlock(CodeBlock), CodeChunk(CodeChunk), Collection(CollectionSimple), Figure(FigureSimple), Heading(Heading), Include(Include), List(List), MathBlock(MathBlock), Paragraph(Paragraph), QuoteBlock(QuoteBlock), Table(TableSimple), ThematicBreak(ThematicBreak),
}
Expand description

Union type for valid block content.

Variants

Claim

Tuple Fields of Claim

0: ClaimSimple
CodeBlock

Tuple Fields of CodeBlock

0: CodeBlock
CodeChunk

Tuple Fields of CodeChunk

0: CodeChunk
Collection

Tuple Fields of Collection

0: CollectionSimple
Figure

Tuple Fields of Figure

0: FigureSimple
Heading

Tuple Fields of Heading

0: Heading
Include

Tuple Fields of Include

0: Include
List

Tuple Fields of List

0: List
MathBlock

Tuple Fields of MathBlock

0: MathBlock
Paragraph

Tuple Fields of Paragraph

0: Paragraph
QuoteBlock

Tuple Fields of QuoteBlock

0: QuoteBlock
Table

Tuple Fields of Table

0: TableSimple
ThematicBreak

Tuple Fields of ThematicBreak

0: ThematicBreak

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Retrieve the type of an entity Needs to be called type_name because type is a reserved word

Retrieve the id of an entity

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.