Struct reveal_yaml::project::Slide

source ·
pub struct Slide {
    pub title: String,
    pub title_hidden: String,
    pub title_only: String,
    pub content: Content,
    pub note: String,
    pub background: Optional<Background>,
    pub class: String,
    pub id: String,
    pub attr: String,
    pub auto_animate: bool,
    pub trans: String,
    pub bg_trans: String,
}
Expand description

All slides has following attributes.

Please see Slides for more information.

Fields§

§title: String

Markdown level 1 title without # notation.

§title_hidden: String

Visible title but will be excluded in TOC.

§title_only: String

Invisible title, doesn’t show but will be included in TOC.

§content: Content

Slides have all attributes of “content“s. (flatten)

Content type can be placed with different layouts.

§note: String

Note in Speaker’s view, Markdown syntax.

§background: Optional<Background>

Background setting, as same as global.

  • Local background option can be boolean false to disable global background.
§class: String

HTML “class” attribute for this section.

For example, “my-class” will become <section class="my-class">.

§id: String

HTML “id” attribute for this section.

For example, “my-id” will become <section id="my-id">.

§attr: String

HTML tag attributes, separated by space.

For example, “attr1 attr2 …” will become <section attr1 attr2 ...>.

§auto_animate: bool

Auto-Animate function.

§trans: String

Transition option.

§bg_trans: String

Trait Implementations§

Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Consume option self into HTML string. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more