pub struct DeckConfig {
pub theme: Option<String>,
pub aspect: Option<String>,
pub transition: Option<String>,
pub accent: Option<String>,
pub font: Option<String>,
pub title: Option<String>,
pub footer: Option<String>,
pub numbers: Option<String>,
pub properties: Vec<StyleProperty>,
}Expand description
Deck-level configuration extracted from a ::deck block (peer of
crate::SiteConfig).
Fields§
§theme: Option<String>§aspect: Option<String>§transition: Option<String>§accent: Option<String>§font: Option<String>§title: Option<String>Custom footer text (defaults to the deck title).
numbers: Option<String>Slide-number / progress chrome toggle (default on). Set numbers: off
(or slide-numbers: false) on ::deck to hide the n / N counter.
properties: Vec<StyleProperty>Implementations§
Source§impl DeckConfig
impl DeckConfig
Sourcepub fn theme_name(&self) -> &str
pub fn theme_name(&self) -> &str
Resolve the theme name, defaulting to the canonical surf-dark.
Sourcepub fn aspect_ratio(&self) -> &str
pub fn aspect_ratio(&self) -> &str
Aspect ratio, defaulting to the canonical 16:9.
Sourcepub fn transition_name(&self) -> &str
pub fn transition_name(&self) -> &str
Transition name, defaulting to fade.
Sourcepub fn show_numbers(&self) -> bool
pub fn show_numbers(&self) -> bool
Whether to show the slide-number counter (default true; off when the
numbers/slide-numbers value is a falsy word).
Trait Implementations§
Source§impl Clone for DeckConfig
impl Clone for DeckConfig
Source§fn clone(&self) -> DeckConfig
fn clone(&self) -> DeckConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeckConfig
impl Debug for DeckConfig
Source§impl Default for DeckConfig
impl Default for DeckConfig
Source§fn default() -> DeckConfig
fn default() -> DeckConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeckConfig
impl RefUnwindSafe for DeckConfig
impl Send for DeckConfig
impl Sync for DeckConfig
impl Unpin for DeckConfig
impl UnsafeUnpin for DeckConfig
impl UnwindSafe for DeckConfig
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