pub struct Master {
pub id: MasterId,
pub name: String,
pub theme: Theme,
pub shapes: Vec<Shape>,
pub background: Option<Background>,
pub title_style: ListStyle,
pub body_style: ListStyle,
pub other_style: ListStyle,
pub layouts: Vec<Layout>,
pub color_map: Vec<(String, String)>,
pub preserve: bool,
pub raw_ext: Option<String>,
}Fields§
§id: MasterId§name: String§theme: Theme§shapes: Vec<Shape>§background: Option<Background>§title_style: ListStyle§body_style: ListStyle§other_style: ListStyle§layouts: Vec<Layout>§color_map: Vec<(String, String)>bg1→lt1 etc. Default mapping when empty.
preserve: bool§raw_ext: Option<String>Implementations§
Source§impl Master
impl Master
pub fn layout(&self, id: LayoutId) -> Option<&Layout>
Sourcepub fn map_slot(&self, slot: SchemeSlot) -> SchemeSlot
pub fn map_slot(&self, slot: SchemeSlot) -> SchemeSlot
Resolve bg1/tx1/bg2/tx2 through the colour map.
Sourcepub fn scheme(&self) -> ColorScheme
pub fn scheme(&self) -> ColorScheme
The theme’s colour scheme with the colour map applied (bg1… resolve to mapped colours).
Sourcepub fn scheme_with(&self, map: &[(String, String)]) -> ColorScheme
pub fn scheme_with(&self, map: &[(String, String)]) -> ColorScheme
The theme’s colour scheme with map (a layout’s or slide’s override, or the master’s own)
applied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Master
impl<'de> Deserialize<'de> for Master
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
impl StructuralPartialEq for Master
Auto Trait Implementations§
impl Freeze for Master
impl RefUnwindSafe for Master
impl Send for Master
impl Sync for Master
impl Unpin for Master
impl UnsafeUnpin for Master
impl UnwindSafe for Master
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