pub struct Slide {
pub title: String,
pub content: Vec<String>,
pub notes: String,
pub bg: Option<Color>,
pub title_color: Color,
pub content_color: Color,
pub align: SlideAlign,
}Expand description
A single slide
Fields§
§title: StringSlide title
content: Vec<String>Slide content (supports basic markdown)
notes: StringSpeaker notes (not displayed)
bg: Option<Color>Background color
title_color: ColorTitle color
content_color: ColorContent color
align: SlideAlignText alignment
Implementations§
Source§impl Slide
impl Slide
Sourcepub fn title_color(self, color: Color) -> Self
pub fn title_color(self, color: Color) -> Self
Set title color
Sourcepub fn content_color(self, color: Color) -> Self
pub fn content_color(self, color: Color) -> Self
Set content color
Sourcepub fn align(self, align: SlideAlign) -> Self
pub fn align(self, align: SlideAlign) -> Self
Set alignment
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slide
impl RefUnwindSafe for Slide
impl Send for Slide
impl Sync for Slide
impl Unpin for Slide
impl UnwindSafe for Slide
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more