Struct reveal_yaml::project::Content
source · pub struct Content {Show 14 fields
pub fit: Vec<String>,
pub doc: String,
pub include: String,
pub include_html: bool,
pub math: String,
pub img: InlineList<Img>,
pub video: InlineList<Video>,
pub iframe: InlineList<IFrame>,
pub lay_img: InlineList<LayImg>,
pub frag: FragMap,
pub h_stack: Vec<Self>,
pub v_stack: Vec<Self>,
pub h_stack_border: Vec<Self>,
pub v_stack_border: Vec<Self>,
}
Expand description
A content block, which visualize all contents in the layout.
The attributes will placed in the following order.
Fields§
§fit: Vec<String>
- Longer text will be smaller.
- Special symbol
---
represents horizontal line<hr/>
.
doc: String
Multiline Markdown text, accept HTML.
include: String
Include a Markdown file from path, append after doc
.
include_html: bool
If you want to include an HTML file without conversion, enable this option.
math: String
Latex math without $$
/ \[\]
brackets.
img: InlineList<Img>
Embed images.
video: InlineList<Video>
Embed videos.
iframe: InlineList<IFrame>
Embed <iframe>
structures, such as YouTube videos.
lay_img: InlineList<LayImg>
Layout stack for images.
frag: FragMap
Fragment option.
h_stack: Vec<Self>
Horizontal stack.
v_stack: Vec<Self>
Vertical stack.
h_stack_border: Vec<Self>
Horizontal stack with border.
v_stack_border: Vec<Self>
Vertical stack with border.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Contentwhere
Content: Default,
impl<'de> Deserialize<'de> for Contentwhere
Content: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more