pub enum Content {
    RichText(RichText),
    Table(Table),
    Image(Image),
    EmbeddedFile(EmbeddedFile),
    Ink(Ink),
    Unknown,
}
Expand description

The content of an outline.

Variants

RichText(RichText)

A rich-text block.

Table(Table)

A table.

Image(Image)

An embedded image.

EmbeddedFile(EmbeddedFile)

An embedded file.

Ink(Ink)

An ink drawing

Unknown

Content of unknown type.

Implementations

Return the rich-text data if it’s a rich-text content block.

Return the table data if it’s a table content block.

Return the image data if it’s a image content block.

Return the embedded file data if it’s a embedded file content block.

Return the ink data if it’s an ink content.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.