Struct stencila_schema::FigureSimple[][src]

pub struct FigureSimple {
    pub type_: FigureSimple_,
    pub caption: Option<Box<FigureCaption>>,
    pub content: Option<Box<CreativeWorkContent>>,
    pub id: Option<Box<String>>,
    pub label: Option<Box<String>>,
    pub parts: Option<Vec<CreativeWorkTypes>>,
    pub title: Option<Box<CreativeWorkTitle>>,
}
Expand description

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

Fields

type_: FigureSimple_

The name of this type

caption: Option<Box<FigureCaption>>

A caption for the figure.

content: Option<Box<CreativeWorkContent>>

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

id: Option<Box<String>>

The identifier for this item.

label: Option<Box<String>>

A short label for the figure.

parts: Option<Vec<CreativeWorkTypes>>

Elements of the collection which can be a variety of different elements, such as Articles, Datatables, Tables and more.

title: Option<Box<CreativeWorkTitle>>

The title of the creative work.

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

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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

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.