ppt_rs/generator/slide_content/
layout.rs1#[derive(Clone, Debug, Copy, PartialEq, Eq)]
5pub enum SlideLayout {
6 TitleOnly,
8 TitleAndContent,
10 TitleAndBigContent,
12 Blank,
14 CenteredTitle,
16 TwoColumn,
18}
19
20impl SlideLayout {
21 pub fn as_str(&self) -> &'static str {
22 match self {
23 SlideLayout::TitleOnly => "titleOnly",
24 SlideLayout::TitleAndContent => "titleAndContent",
25 SlideLayout::TitleAndBigContent => "titleAndBigContent",
26 SlideLayout::Blank => "blank",
27 SlideLayout::CenteredTitle => "centeredTitle",
28 SlideLayout::TwoColumn => "twoColumn",
29 }
30 }
31}
32